Uses
Uses | Description |
---|---|
wp-includes/class-wp-query.php: WP_Query::get_queried_object_id() | Retrieve ID of the current queried object. |
Retrieve ID of the current queried object.
Wrapper for WP_Query::get_queried_object_id().
(int) ID of the queried object.
File: wp-includes/query.php
function get_queried_object_id() { global $wp_query; return $wp_query->get_queried_object_id(); }
Version | Description |
---|---|
3.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_queried_object_id