wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



get_queried_object_id › WordPress Function

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

Retrieves the ID of the currently 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();
}