Fires before the Add Term form for all taxonomies. The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug. Possible hook names include: - `category_pre_add_form` - `post_tag_pre_add_form`
$taxonomy
Sortie :
@param string $taxonomy The taxonomy slug.
// Ajouter une fonction au hook action '{$taxonomy}_pre_add_form'
add_action('{$taxonomy}_pre_add_form', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($taxonomy) {
// Votre code ici
error_log('Hook {$taxonomy}_pre_add_form déclenché');
}
Chargement des actualités...