Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get_the_id wordpress

function get_the_ID() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
    $post = get_post();
    return ! empty( $post ) ? $post->ID : false;
}
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged: #wordpress
ADD COMMENT
Topic
Name
3+7 =