{$taxonomy}_term_edit_form_top

ACTION wp-admin\edit-tag-form.php (ligne 141) github
Fires at the beginning of the Edit Term form. At this point, the required hidden fields and nonces have already been output. The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug. Possible hook names include:  - `category_term_edit_form_top`  - `post_tag_term_edit_form_top`

Paramètres

Entrée :
$tag, $taxonomy
Sortie :
@param WP_Term $tag      Current taxonomy term object.
@param string  $taxonomy Current $taxonomy slug.

Utilisation

// Ajouter une fonction au hook action '{$taxonomy}_term_edit_form_top'
add_action('{$taxonomy}_term_edit_form_top', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($tag, $taxonomy) {
    // Votre code ici
    error_log('Hook {$taxonomy}_term_edit_form_top déclenché');
}

Actualités

Chargement des actualités...