wp_maybe_clean_new_site_cache_on_update

Advertisement

Summery Summery

Cleans the necessary caches after specific site data has been updated.

Syntax Syntax

wp_maybe_clean_new_site_cache_on_update( WP_Site $new_site, WP_Site $old_site )

Parameters Parameters

$new_site

(Required) The site object after the update.

$old_site

(Required) The site obejct prior to the update.

Source Source

File: wp-includes/ms-site.php

		do_action( 'update_blog_public', $site_id, $new_site->public );
	}
}

/**

Advertisement

Changelog Changelog

Changelog
Version Description
5.1.0 Introduced.

Advertisement

Leave a Reply