category_add_form
Fires at the end of the Add Term form for all taxonomies.
This is one of the variants of the dynamic hook (taxonomy)_add_form
Usage
add_action( 'category_add_form', 'wp_kama_category_add_form_action' );
/**
* Function for `category_add_form` action-hook.
*
* @param string $taxonomy The taxonomy slug.
*
* @return void
*/
function wp_kama_category_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_add_form
wp-admin/edit-tags.php 606
do_action( "{$taxonomy}_add_form", $taxonomy );