current_screen

Fires after the current screen has been set.

Description

add_action( 'current_screen', (callback) $array, (int) $int, (int) $int ); 

Parameters (3)

0. $array (callback) => array( &$this, 'load_meta_page' )
The array.
1. $int (int) => 100
The int.
2. $int (int) => 1
The int.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'current_screen', $array, $int, $int ); 
The following example is for adding a hook callback.
  1. // define the current_screen callback 
  2. function action_current_screen( $array, $int, $int ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'current_screen', 'action_current_screen', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'current_screen', 'action_current_screen', 10, 3 ); 

Defined (4)

The action is defined in the following location(s).

/lib/post.php  
  1. add_action( 'current_screen', array( &$this, 'load_meta_page' ), 100, 1 ); 
/lib/term.php  
  1. add_action( 'current_screen', array( &$this, 'load_meta_page' ), 300, 1 ); 
/lib/user.php  
  1. add_action( 'current_screen', array( &$this, 'load_meta_page' ), 200, 1 ); 
/lib/util.php  
  1. add_action( 'current_screen', array( &$this, 'add_plugin_image_sizes' ), -100 );