Uses
Uses | Description |
---|---|
wp-includes/class-wp-query.php: WP_Query::get_queried_object() | Retrieve queried object. |
Retrieve ID of the current queried object.
(int)
File: wp-includes/class-wp-query.php
public function get_queried_object_id() { $this->get_queried_object(); if ( isset( $this->queried_object_id ) ) { return $this->queried_object_id; } return 0; }
Version | Description |
---|---|
1.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_query/get_queried_object_id