WP_Screen::set_current_screen

Advertisement

Summery Summery

Makes the screen object the current screen.

Syntax Syntax

WP_Screen::set_current_screen()

Source Source

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 );
	}

Advertisement

Changelog Changelog

Changelog
Version Description
3.3.0 Introduced.

See also See also

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.