(taxonomy)_edit_form_fields
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:
Usage
add_action( '(taxonomy)_edit_form_fields', 'wp_kama_taxonomy_edit_form_fields_action', 10, 2 ); /** * Function for `(taxonomy)_edit_form_fields` action-hook. * * @param WP_Term $tag Current taxonomy term object. * @param string $taxonomy Current taxonomy slug. * * @return void */ function wp_kama_taxonomy_edit_form_fields_action( $tag, $taxonomy ){ // action... }
- $tag(WP_Term)
- Current taxonomy term object.
- $taxonomy(string)
- Current taxonomy slug.
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
In file: /wp-admin/edit-tag-form.php
(taxonomy)_edit_form_fields
wp-admin/edit-tag-form.php 258
do_action( "{$taxonomy}_edit_form_fields", $tag, $taxonomy );