core_updated_successfully
The WordPress Core core updated successfully hook.
Description
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.
- // run the action
- do_action( 'core_updated_successfully', $redirect_to_about_wordpress );
- The following example is for adding a hook callback.
- // define the core_updated_successfully callback
- function action_core_updated_successfully( $redirect_to_about_wordpress ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'core_updated_successfully', 'action_core_updated_successfully', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- 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
- add_action( '_core_updated_successfully', '_redirect_to_about_wordpress' );
- /wp-admin/includes/update-core.php
- do_action( '_core_updated_successfully', $wp_version );