Uses
Uses | Description |
---|---|
wp-admin/includes/class-wp-screen.php: current_screen | Fires after the current screen has been set. |
wp-includes/plugin.php: do_action() | Execute functions hooked on a specific action hook. |
Makes the screen object the current screen.
File: wp-admin/includes/class-wp-screen.php
public function set_current_screen() { global $current_screen, $taxnow, $typenow; $current_screen = $this; $taxnow = $this->taxonomy; $typenow = $this->post_type; /** * Fires after the current screen has been set. * * @since 3.0.0 * * @param WP_Screen $current_screen Current WP_Screen object. */ do_action( 'current_screen', $current_screen ); }
Version | Description |
---|---|
3.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_screen/set_current_screen