category_pre_add_form
Fires before the Add Term form for all taxonomies.
This is one of the variants of the dynamic hook (taxonomy)_pre_add_form
Usage
add_action( 'category_pre_add_form', 'wp_kama_category_pre_add_form_action' ); /** * Function for `category_pre_add_form` action-hook. * * @param string $taxonomy The taxonomy slug. * * @return void */ function wp_kama_category_pre_add_form_action( $taxonomy ){ // action... }
- $taxonomy(string)
- The taxonomy slug.
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
In file: /wp-admin/edit-tags.php
category_pre_add_form
wp-admin/edit-tags.php 431
do_action( "{$taxonomy}_pre_add_form", $taxonomy );