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`
$tag, $taxonomy
Sortie :
@param WP_Term $tag Current taxonomy term object. @param string $taxonomy Current $taxonomy slug.
// 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é');
}
Chargement des actualités...