get_queried_object()
Retrieve the currently-queried object.
描述
Wrapper for WP_Query::get_queried_object().
返回值
(object) Queried object.
源代码
File: wp-includes/query.php
function get_queried_object() {
global $wp_query;
return $wp_query->get_queried_object();
}
更新日志
Version | 描述 |
---|---|
3.1.0 | Introduced. |
相关函数
Uses
-
wp-includes/class-wp-query.php:
WP_Query::get_queried_object()
Used By
-
wp-includes/template.php:
get_embed_template() -
wp-includes/general-template.php:
wp_get_document_title() -
wp-includes/general-template.php:
get_the_archive_title() -
wp-includes/category-template.php:
term_ 描述() -
wp-includes/category-template.php:
wp_list_categories() -
wp-includes/general-template.php:
feed_links_extra() -
wp-includes/general-template.php:
wp_title() -
wp-includes/general-template.php:
single_post_title() -
wp-includes/general-template.php:
single_term_title() -
wp-includes/class-wp.php:
WP::handle_404() -
wp-includes/link-template.php:
edit_term_link() -
wp-includes/template.php:
get_single_template() -
wp-includes/template.php:
get_attachment_template() -
wp-includes/template.php:
get_author_template() -
wp-includes/template.php:
get_category_template() -
wp-includes/template.php:
get_tag_template() -
wp-includes/template.php:
get_taxonomy_template() -
wp-includes/template.php:
get_page_template() -
wp-includes/post-template.php:
wp_list_pages()
Show 14 more used by
Hide more used by
你可能对这些文章感兴趣:
- wordpress函数get_the_posts_navigation()用法示例
- wordpress函数get_the_title()用法示例
- wordpress函数get_the_terms()用法示例
- wordpress函数get_the_tags()用法示例
- wordpress函数get_the_taxonomies()用法示例
- wordpress函数get_the_permalink()用法示例
- wordpress函数get_the_password_form()用法示例
- wordpress函数get_the_posts_pagination()用法示例
- wordpress函数get_the_modified_date()用法示例
- wordpress函数get_the_modified_time()用法示例
- wordpress函数get_the_modified_author()用法示例
- wordpress函数get_the_guid()用法示例
- wordpress函数get_the_ID()用法示例
- wordpress函数get_the_excerpt()用法示例
如有疑问,请前往问答中心反馈!
反馈