Fires immediately after a site has been removed from the object cache.
$blog_id, $blog, $domain_path_key
Sortie :
@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.
// Ajouter une fonction au hook action 'clean_site_cache'
add_action('clean_site_cache', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($blog_id, $blog, $domain_path_key) {
// Votre code ici
error_log('Hook clean_site_cache déclenché');
}
Chargement des actualités...