{$taxonomy}_pre_add_form WordPress Action Hook
The {$taxonomy}_pre_add_form hook is triggered before a new term is added to the database. It allows you to modify the form data before it is saved.
do_action( "{$taxonomy}_pre_add_form", string $taxonomy ) #
Fires before the Add Term form for all taxonomies.
Description
The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug.
Possible hook names include:
category_pre_add_formpost_tag_pre_add_form
Parameters
- $taxonomy
(string)The taxonomy slug.
Source
File: wp-admin/edit-tags.php
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |