Fires immediately before an object-term relationship is deleted.
$slug, $term
Sortie :
@param int $object_id Object ID. @param array $tt_ids An array of term taxonomy IDs. @param string $taxonomy Taxonomy slug. @param int $object_id Object ID. @param array $tt_ids An array of term taxonomy IDs. @param string $taxonomy Taxonomy slug. @param string $slug The string that will be tried for a unique slug. @param object $term The term object that the `$slug` will belong to. @return string Will return a true unique slug.
// Utilisation de la fonction wp_unique_term_slug
$result = wp_unique_term_slug($slug, $term);
if ($result) {
// Votre logique ici
}
Chargement des actualités...