current_screen action-hookWP 3.0.0

Fires after the current screen has been set.

Usage

add_action( 'current_screen', 'wp_kama_current_screen_action' );

/**
 * Function for `current_screen` action-hook.
 * 
 * @param WP_Screen $current_screen Current WP_Screen object.
 *
 * @return void
 */
function wp_kama_current_screen_action( $current_screen ){

	// action...
}
$current_screen(WP_Screen)
Current WP_Screen object.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

WP_Screen::set_current_screen()
current_screen
wp-admin/includes/class-wp-screen.php 424
do_action( 'current_screen', $current_screen );

Where the hook is used in WordPress

Usage not found.