current_screen
Fires after the current screen has been set.
Description
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.
- // run the action
- do_action( 'current_screen', $array, $int, $int );
- The following example is for adding a hook callback.
- // define the current_screen callback
- function action_current_screen( $array, $int, $int ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'current_screen', 'action_current_screen', 10, 3 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'current_screen', 'action_current_screen', 10, 3 );
Defined (4)
The action is defined in the following location(s).
- /lib/post.php
- add_action( 'current_screen', array( &$this, 'load_meta_page' ), 100, 1 );
- /lib/term.php
- add_action( 'current_screen', array( &$this, 'load_meta_page' ), 300, 1 );
- /lib/user.php
- add_action( 'current_screen', array( &$this, 'load_meta_page' ), 200, 1 );
- /lib/util.php
- add_action( 'current_screen', array( &$this, 'add_plugin_image_sizes' ), -100 );