clean_site_cache

ACTION wp-includes\ms-site.php (ligne 1007) github
Fires immediately after a site has been removed from the object cache.

Paramètres

Entrée :
$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.

Utilisation

// 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é');
}

Actualités

Chargement des actualités...