wp_update_site action-hookWP 5.1.0

Fires once a site has been updated in the database.

Usage

add_action( 'wp_update_site', 'wp_kama_wp_update_site_action', 10, 2 );
function wp_kama_wp_update_site_action( $new_site, $old_site ){
	// action...
}
$new_site(WP_Site)
New site object.
$old_site(WP_Site)
Old site object.

Changelog

Since 5.1.0 Introduced.

Where the hook is called

wp_update_site()
wp_update_site
wp-includes/ms-site.php 195
do_action( 'wp_update_site', $new_site, $old_site );

Where the hook is used in WordPress

wp-includes/ms-default-filters.php 46
add_action( 'wp_update_site', 'wp_maybe_update_network_site_counts_on_update', 10, 2 );
wp-includes/ms-default-filters.php 49
add_action( 'wp_update_site', 'wp_maybe_transition_site_statuses_on_update', 10, 2 );
wp-includes/ms-default-filters.php 50
add_action( 'wp_update_site', 'wp_maybe_clean_new_site_cache_on_update', 10, 2 );