after_mu_upgrade
This action is documented in wp-admin/network/upgrade.php.
Description
Parameters (1)
- 0. $response (array|WP_Error)
- The upgrade response array or
WP_Error
on failure.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'after_mu_upgrade', $response );
- The following example is for adding a hook callback.
- // define the after_mu_upgrade callback
- function action_after_mu_upgrade( $response ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'after_mu_upgrade', 'action_after_mu_upgrade', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'after_mu_upgrade', 'action_after_mu_upgrade', 10, 1 );
Defined (2)
The action is defined in the following location(s).
- /wp-admin/network/upgrade.php
- do_action( 'after_mu_upgrade', $response );
- /wp-admin/admin.php
- do_action( 'after_mu_upgrade', $response );