activate_header
Fires before the Site Activation page is loaded.
Description
do_action( 'activate_header' );
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'activate_header' );
- The following example is for adding a hook callback.
- // define the activate_header callback
- function action_activate_header( ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'activate_header', 'action_activate_header', 10, 0 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'activate_header', 'action_activate_header', 10, 0 );
Defined (2)
The action is defined in the following location(s).
- /wp-activate.php
- do_action( 'activate_header' );
- /wp-includes/default-filters.php
- add_action( 'activate_header', '_wp_admin_bar_init' );