Answers for "how to get the post id"

PHP
0

get_the_id wordpress

function get_the_ID() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
    $post = get_post();
    return ! empty( $post ) ? $post->ID : false;
}
Posted by: Guest on October-26-2020

Code answers related to "how to get the post id"

Browse Popular Code Answers by Language