Answers for "get the current id in wordpreee"

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 "get the current id in wordpreee"

Browse Popular Code Answers by Language