{$taxonomy}_edit_form_fields

ACTION wp-admin\edit-tag-form.php (ligne 259) github
Fires after the Edit Term form fields are displayed. The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug. Possible hook names include:  - `category_edit_form_fields`  - `post_tag_edit_form_fields`

Paramètres

Entrée :
$tag, $taxonomy
Sortie :
@param WP_Term $tag      Current taxonomy term object.
@param string  $taxonomy Current taxonomy slug.

Utilisation

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

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

Actualités

Chargement des actualités...