wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



get_queried_object_id › WordPress Function

Depuis3.1.0
Dépréciéen/a
get_queried_object_id ( Pas de paramètres )
Retourne:
  • (int) ID of the queried object.
Défini(e) dans:
Codex:

Retrieves the ID of the currently queried object.

Wrapper for WP_Query::get_queried_object_id().


Source

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