Action hook '_core_updated_successfully'

in WP Core File wp-admin/includes/update-core.php at line 1596

View Source

_core_updated_successfully

Action Hook
Description
Fires after WordPress core has been successfully updated.

Hook Information

File Location wp-admin/includes/update-core.php View on GitHub
Hook Type Action
Line Number 1596

Hook Parameters

Type Name Description
string $wp_version The current WordPress version.

Usage Examples

Basic Usage
<?php
// Hook into _core_updated_successfully
add_action('_core_updated_successfully', 'my_custom_function', 10, 1);

function my_custom_function($wp_version) {
    // Your custom code here
}

Source Code Context

wp-admin/includes/update-core.php:1596 - How this hook is used in WordPress core
<?php
1591  	 *
1592  	 * @since 3.3.0
1593  	 *
1594  	 * @param string $wp_version The current WordPress version.
1595  	 */
1596  	do_action( '_core_updated_successfully', $wp_version );
1597  
1598  	// Clear the option that blocks auto-updates after failures, now that we've been successful.
1599  	if ( function_exists( 'delete_site_option' ) ) {
1600  		delete_site_option( 'auto_core_update_failed' );
1601  	}

PHP Documentation

<?php
/**
	 * Fires after WordPress core has been successfully updated.
	 *
	 * @since 3.3.0
	 *
	 * @param string $wp_version The current WordPress version.
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 1
  • File: wp-admin/includes/update-core.php
Related Hooks

Related hooks will be displayed here in future updates.