clean_site_cache хук-событиеWP 4.6.0

Fires immediately after a site has been removed from the object cache.

Использование

add_action( 'clean_site_cache', 'wp_kama_clean_site_cache_action', 10, 3 );

/**
 * Function for `clean_site_cache` action-hook.
 * 
 * @param string  $id              Site ID as a numeric string.
 * @param WP_Site $blog            Site object.
 * @param string  $domain_path_key md5 hash of domain and path.
 *
 * @return void
 */
function wp_kama_clean_site_cache_action( $id, $blog, $domain_path_key ){

	// action...
}
$id(строка)
Site ID as a numeric string.
$blog(WP_Site)
Site object.
$domain_path_key(строка)
md5 hash of domain and path.

Список изменений

С версии 4.6.0 Введена.

Где вызывается хук

clean_blog_cache()
clean_site_cache
wp-includes/ms-site.php 1011
do_action( 'clean_site_cache', $blog_id, $blog, $domain_path_key );

Где используется хук в WordPress

Использование не найдено.