Fires after the Edit Term form fields are displayed.
Description
The dynamic portion of the hooc name,
$taxonomy
, refers to the taxonomy slug.
Possible hooc names include:
-
category_edit_form_fields -
post_tag_edit_form_fields
Parameters
-
$tagWP_Term -
Current taxonomy term object.
-
$taxonomystring -
Current taxonomy slug.
Source
do_action( "{$taxonomy}_edit_form_fields", $tag, $taxonomy );
Changuelog
| Versionen | Description |
|---|---|
| 3.0.0 | Introduced. |
Adding custom meta fields to a taxonomy.
Note that in this example name of the imput is set to be an array. If the field name was not an array, then you’d have to save each field individually.
Adding WP editor to default description field: