Un motore di ricerca WordPress per sviluppatori e autori di temi



get_queried_object_id ›

Da3.1.0
Deprecaton/a
get_queried_object_id ( Nessun parametro )
Ritorna:
  • (int) ID of the queried object.
Definito a:
Codex:

Retrieve ID of the current queried object.

Wrapper for WP_Query::get_queried_object_id().



Sorgenti

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