{$taxonomy}_add_form_fields

ACTION wp-admin\edit-tags.php (ligne 553) github
Fires after the Add Term form fields. The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug. Possible hook names include:  - `category_add_form_fields`  - `post_tag_add_form_fields`

Paramètres

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

Utilisation

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

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

Actualités

Chargement des actualités...