core_updated_successfully

Fires after WordPress core has been successfully updated.

Description

do_action( 'core_updated_successfully', (string) $wp_version ); 

Parameters (1)

0. $wp_version (string)
The current WordPress version.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'core_updated_successfully', $wp_version ); 
The following example is for adding a hook callback.
  1. // define the core_updated_successfully callback 
  2. function action_core_updated_successfully( $wp_version ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'core_updated_successfully', 'action_core_updated_successfully', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'core_updated_successfully', 'action_core_updated_successfully', 10, 1 ); 

Defined (1)

The action is defined in the following location(s).

/wp-admin/includes/update-core.php  
  1. do_action( '_core_updated_successfully', $wp_version );