{$taxonomy}_add_form

ACTION wp-admin\edit-tags.php (ligne 606) github
Fires at the end of 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_add_form`  - `post_tag_add_form`

Paramètres

Entrée :
$taxonomy
Sortie :
@param string $taxonomy The taxonomy slug.

Utilisation

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

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

Actualités

Chargement des actualités...