Метод |
Описание |
|
can_cache_query ( ) : boolean |
Checks whether $wp_query or $current_screen is set. |
|
check_the_real_ID ( ) : integer | empty |
Get the real ID from plugins. |
|
get_admin_term_id ( ) : integer |
Fetches the Term ID on admin pages. |
|
get_query_cache ( string $key, mixed $value_to_set = null ) : mixed |
Handles object cache for the query class. |
|
get_the_real_ID ( boolean $use_cache = true ) : integer | false |
Get the real page ID, also from CPT, archives, author, blog, etc. |
|
get_the_real_admin_ID ( ) |
Fetches post or term ID within the admin. |
|
is_404 ( ) : boolean |
Detects 404. |
|
is_admin ( ) : boolean |
Detects admin screen. |
|
is_archive ( ) : boolean |
Detects archive pages. Also in admin. |
|
is_archive_admin ( ) : boolean |
Extends default WordPress is_archive() and determines screen in admin. |
|
is_attachment ( mixed $attachment = '' ) : boolean |
Detects attachment page. |
|
is_author ( mixed $author = '' ) : boolean |
Detects author archives. |
|
is_blog_page ( integer $id ) : boolean |
Detect the separated blog page. |
|
is_category ( mixed $category = '' ) : boolean |
Detects category archives. |
|
is_category_admin ( ) : boolean |
Extends default WordPress is_category() and determines screen in admin. |
|
is_date ( ) : boolean |
Detects date archives. |
|
is_day ( ) : boolean |
Detects day archives. |
|
is_feed ( string | array $feeds = '' ) : boolean |
Detects feed. |
|
is_front_page ( integer $id ) : boolean |
Detects front page. |
|
is_home ( ) : boolean |
Detects home page. |
|
is_menu_page ( string $pagehook = '', string $pageslug = '' ) : boolean |
Checks the screen base file through global $page_hook or $_GET. |
|
is_month ( ) : boolean |
Detects month archives. |
|
is_page ( integer | string | array $page = '' ) : boolean |
Detects pages. |
|
is_page_admin ( ) : boolean |
Detects pages within the admin area. |
|
is_post_edit ( ) : boolean |
Detects Post edit screen in WP Admin. |
|
is_preview ( ) : boolean |
Detects preview. |
|
is_search ( ) : boolean |
Detects preview. |
|
is_seo_settings_page ( boolean $secure = true ) : boolean |
Determines whether we're on the SEO settings page. |
|
is_single ( integer | string | array $post = '' ) : boolean |
Detects posts. |
|
is_single_admin ( ) : boolean |
Detects posts within the admin area. |
|
is_singular ( string | array $post_types = '' ) : boolean |
Determines if the current page is singular is holds singular items within the admin screen. |
|
is_singular_admin ( ) : boolean |
Determines if the page is singular within the admin screen. |
|
is_static_frontpage ( integer $id = '' ) : boolean |
Detects the static front page. |
|
is_tag ( mixed $tag = '' ) : boolean |
Detects tag archives. |
|
is_tag_admin ( ) : boolean |
Determines if the page is a tag within the admin screen. |
|
is_tax ( string | array $taxonomy = '', integer | string | array $term = '' ) : boolean |
Detects taxonomy archives. |
|
is_term_edit ( ) : boolean |
Detects Term edit screen in WP Admin. |
|
is_ultimate_member_user_page ( ) : boolean |
Determines if the page is a Ulimate Member's plugin User page. |
|
is_wc_product ( ) : boolean |
Determines if the page is the WooCommerce plugin Product page. |
|
is_wc_shop ( ) : boolean |
Determines if the page is the WooCommerce plugin Shop page. |
|
is_wp_lists_edit ( ) : boolean |
Detects Post or Archive Lists in Admin. |
|
is_year ( ) : boolean |
Detects year archives. |
|
page ( ) : integer |
Fetches the amount of pages on the screen. |
|
paged ( ) : integer |
Fetches the number of the current page. |
|
set_query_cache ( string $key, mixed $value_to_set ) : boolean |
Object cache handler for the query class. |
|