Fires at the end of the Edit Term form for all taxonomies. The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug. Possible hook names include: - `category_edit_form` - `post_tag_edit_form`
$tag, $taxonomy
Sortie :
@param WP_Term $tag Current taxonomy term object. @param string $taxonomy Current taxonomy slug.
// Ajouter une fonction au hook action '{$taxonomy}_edit_form'
add_action('{$taxonomy}_edit_form', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($tag, $taxonomy) {
// Votre code ici
error_log('Hook {$taxonomy}_edit_form déclenché');
}
Chargement des actualités...