WP_Query::get_queried_object_id(): int In this article Table of ContentsReturn Source Related Changelog Copy page View as Markdown Back to top Retrieves the ID of the currently queried object. Return int Source public function get_queried_object_id() { $this->get_queried_object(); return $this->queried_object_id ?? 0; } View all references View on Trac View on GitHub Related UsesDescriptionWP_Query::get_queried_object()wp-includes/class-wp-query.phpRetrieves the currently queried object. Used byDescriptionget_queried_object_id()wp-includes/query.phpRetrieves the ID of the currently queried object. redirect_canonical()wp-includes/canonical.phpRedirects incoming links to the proper URL based on the site url. Changelog VersionDescription1.5.0Introduced. User Contributed Notes You must log in before being able to contribute a note or feedback.
User Contributed Notes
You must log in before being able to contribute a note or feedback.