WP_Screen::set_current_screen()

Makes the screen object the current screen.

Description

See also

Source

public function set_current_screen() {
	global $current_screen, $taxnow, $typenow;

	$current_screen = $this;
	$typenow        = $this->post_type;
	$taxnow         = $this->taxonomy;

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

Hooks

do_action( ‘current_screen’, WP_Screen $current_screen )

Fires after the current screen has been set.

Changelog

VersionDescription
3.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.