clean_term_cache

FUNCTION wp-includes\taxonomy.php (ligne 3646) github
Fires after the object term cache has been cleaned.

Paramètres

Entrée :
$ids, $taxonomy = '', $clean_taxonomy = true
Sortie :
@param array  $object_ids An array of object IDs.
@param string $object_type Object type.
@param int|int[] $ids            Single or array of term IDs.
@param string    $taxonomy       Optional. Taxonomy slug. Can be empty, in which case the taxonomies of the passed
@param bool      $clean_taxonomy Optional. Whether to clean taxonomy wide caches (true), or just individual

Utilisation

// Utilisation de la fonction clean_term_cache
$result = clean_term_cache($ids, $taxonomy = '', $clean_taxonomy = true);

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...