edit_{$taxonomy}

ACTION wp-includes\taxonomy.php (ligne 3448) github
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`

Paramètres

Entrée :
$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().

Utilisation

// 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é');
}

Actualités

Chargement des actualités...