• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress core a2z

WordPress core a2z

WordPress core only

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / get_current_screen() – Get the current screen object

You appear to be a bot. Output may be restricted

Description

Get the current screen object

Usage

$WP_Screen|null = get_current_screen();

Parameters

Returns

WP_Screen|null Current screen object or null when screen not defined.

Source

File name: wordpress/wp-admin/includes/screen.php
Lines:

1 to 9 of 9
function get_current_screen() {
  global $current_screen;

  if ( ! isset( $current_screen ) ) {
    return null;
  }

  return $current_screen;
}
 

 View on GitHub View on Trac

Published: 25th November 2019 | Last updated: 25th November 2019

Primary Sidebar

Information

Function name: get_current_screen
Plugin ref: WordPress
Version: 5.6
Sourcefile: wp-admin/includes/screen.php
File ref: wp-admin/includes/screen.php
Deprecated?: No
API Letters: C,G,S

Footer

WP-a2z
WordPress core a2z
WordPress core only
WordPress 5.6
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  core.wp-a2z.org
© Copyright WP-a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites