Fires after a term in a specific taxonomy has been updated, but before the term cache has been cleaned. The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug. Possible hook names include: - `edit_category` - `edit_post_tag`
$term_id, $tt_id, $args
Sortie :
@param int $term_id Term ID. @param int $tt_id Term taxonomy ID. @param array $args Arguments passed to wp_update_term().
// Ajouter une fonction au hook action 'edit_{$taxonomy}'
add_action('edit_{$taxonomy}', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($term_id, $tt_id, $args) {
// Votre code ici
error_log('Hook edit_{$taxonomy} déclenché');
}
Chargement des actualités...