saved_term

ACTION wp-includes\taxonomy.php (ligne 2764) github
Fires after a term has been saved, and the term cache has been cleared. The {@see 'saved_$taxonomy'} hook is also available for targeting a specific taxonomy.

Paramètres

Entrée :
$term_id, $tt_id, $taxonomy, false, $args
Sortie :
@param int    $term_id  Term ID.
@param int    $tt_id    Term taxonomy ID.
@param string $taxonomy Taxonomy slug.
@param bool   $update   Whether this is an existing term being updated.
@param array  $args     Arguments passed to wp_insert_term().

Utilisation

// Ajouter une fonction au hook action 'saved_term'
add_action('saved_term', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($term_id, $tt_id, $taxonomy, false, $args) {
    // Votre code ici
    error_log('Hook saved_term déclenché');
}

Actualités

Chargement des actualités...