get_current_screen()
Get the current screen object
Return
(WP_Screen|null) Current screen object or null when screen not defined.
Source
File: wp-admin/includes/screen.php
function get_current_screen() {
global $current_screen;
if ( ! isset( $current_screen ) )
return null;
return $current_screen;
}
Related
Used By
Used By | Description |
---|---|
wp-admin/includes/class-wp-site-health.php: WP_Site_Health::admin_body_class() |
Adds a class to the body HTML tag. |
wp-admin/includes/class-wp-site-health.php: WP_Site_Health::enqueue_scripts() |
Enqueues the site health scripts. |
wp-includes/classicpress/class-cp-customization.php: CP_Customization::add_id_init() |
Add ID column to Post / Page Tables |
wp-includes/widgets/class-wp-widget-custom-html.php: WP_Widget_Custom_HTML::add_help_text() |
Add help text to widgets admin screen. |
wp-includes/admin-bar.php: wp_admin_bar_edit_menu() |
Provides an edit link for posts and terms. |
wp-includes/functions.php: wp_auth_check_load() |
Loads the auth check for monitoring whether the user is still logged in. |
wp-admin/includes/class-custom-background.php: Custom_Background::admin_load() |
Sets up the enqueue for the CSS & JavaScript files. |
wp-admin/includes/class-custom-image-header.php: Custom_Image_Header::help() |
Adds contextual help. |
wp-admin/includes/deprecated.php: screen_layout() |
Returns the screen layout options. |
wp-admin/includes/deprecated.php: screen_options() |
Returns the screen’s per-page options. |
wp-admin/includes/deprecated.php: screen_meta() |
Renders the screen’s help. |
wp-admin/includes/class-wp-screen.php: WP_Screen::render_view_mode() |
Renders the list table view mode preferences. |
wp-admin/includes/class-wp-screen.php: WP_Screen::get() |
Fetches a screen object. |
wp-admin/includes/class-wp-privacy-policy-content.php: WP_Privacy_Policy_Content::policy_text_changed_notice() |
Output a warning when some privacy info has changed. |
wp-admin/includes/class-wp-privacy-policy-content.php: WP_Privacy_Policy_Content::notice() |
Add a notice with a link to the guide when editing the privacy policy page. |
wp-admin/includes/misc.php: _wp_privacy_settings_filter_draft_page_titles() |
Appends ‘(Draft)’ to draft page titles in the privacy page dropdown so that unpublished content is obvious. |
wp-admin/includes/template.php: iframe_header() |
Generic Iframe header for use with Thickbox. |
wp-admin/includes/template.php: add_meta_box() |
Adds a meta box to one or more screens. |
wp-admin/includes/template.php: do_meta_boxes() |
Meta-Box template function. |
wp-admin/includes/template.php: remove_meta_box() |
Removes a meta box from one or more screens. |
wp-admin/includes/template.php: do_accordion_sections() |
Meta Box Accordion Template Function. |
wp-admin/includes/ajax-actions.php: wp_ajax_search_install_plugins() |
Ajax handler for searching plugins to install. |
wp-admin/includes/ajax-actions.php: wp_ajax_search_plugins() |
Ajax handler for searching plugins. |
wp-admin/includes/screen.php: add_screen_option() |
Register and configure an admin screen option |
wp-admin/includes/meta-boxes.php: post_comment_meta_box() |
Displays comments for post. |
wp-admin/includes/meta-boxes.php: page_attributes_meta_box() |
Displays page attributes form fields. |
wp-admin/includes/list-table.php: _get_list_table() |
Fetches an instance of a WP_List_Table class. |
wp-admin/includes/update.php: wp_plugin_update_row() |
Displays update information for a plugin. |
wp-admin/includes/dashboard.php: wp_dashboard_setup() |
Registers dashboard widgets. |
wp-admin/includes/dashboard.php: wp_add_dashboard_widget() |
Adds a new dashboard widget. |
wp-admin/includes/dashboard.php: wp_dashboard() |
Displays the dashboard. |
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |