clean_object_term_cache

FUNCTION wp-includes\taxonomy.php (ligne 3611) github
Removes the taxonomy relationship to terms from the cache. Will remove the entire taxonomy relationship containing term `$object_id`. The term IDs have to exist within the taxonomy `$object_type` for the deletion to take place.

Paramètres

Entrée :
$object_ids, $object_type
Sortie :
@param int|array    $object_ids  Single or list of term object ID(s).
@param array|string $object_type The taxonomy object type.

Utilisation

// Utilisation de la fonction clean_object_term_cache
$result = clean_object_term_cache($object_ids, $object_type);

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

Actualités

Chargement des actualités...