after_db_upgrade
Fires on the next page load after a successful DB upgrade.
Description
do_action( 'after_db_upgrade' );
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'after_db_upgrade' );
- The following example is for adding a hook callback.
- // define the after_db_upgrade callback
- function action_after_db_upgrade( ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'after_db_upgrade', 'action_after_db_upgrade', 10, 0 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'after_db_upgrade', 'action_after_db_upgrade', 10, 0 );
Defined (1)
The action is defined in the following location(s).
- /wp-admin/admin.php
- do_action( 'after_db_upgrade' );