load-<page>
The WordPress Core load page hook.
Description
Parameters (1)
- 0. $array (callback) =>
array( $this, 'admin_load' )
- The array.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'load-{$page}', $array );
- The following example is for adding a hook callback.
- // define the load-<page> callback
- function action_load_page( $array ) {
- // make action magic happen here...
- };
- // add the action
- add_action( "load-{$page}", 'action_load_page', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( "load-{$page}", 'action_load_page', 10, 1 );
Defined (3)
The action is defined in the following location(s).
- /wp-admin/custom-background.php
- add_action( "load-$page", array( $this, 'admin_load' ) );
- add_action( "load-$page", array( $this, 'take_action' ), 49 );
- add_action( "load-$page", array( $this, 'handle_upload' ), 49 );