core_updated_successfully

The WordPress Core core updated successfully hook.

Description

add_action( 'core_updated_successfully', (string) $redirect_to_about_wordpress ); 

Parameters (1)

0. $redirect_to_about_wordpress (string) => '_redirect_to_about_wordpress'
The redirect to about wordpress.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'core_updated_successfully', $redirect_to_about_wordpress ); 
The following example is for adding a hook callback.
  1. // define the core_updated_successfully callback 
  2. function action_core_updated_successfully( $redirect_to_about_wordpress ) { 
  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 (2)

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

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