Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_queried_object_id [ WordPress Function ]

get_queried_object_id ( No parameters )
Access:
  • public
Uses:
Returns:
  • (int)
Defined at:



Retrieve ID of the current queried object. Wrapper for $wp_query->get_queried_object_id()

Source


<?php
function get_queried_object_id() {
    global 
$wp_query;
    return 
$wp_query->get_queried_object_id();
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics