category_edit_form
Fires at the end of the Edit Term form for all taxonomies.
This is one of the variants of the dynamic hook (taxonomy)_edit_form
Usage
add_action( 'category_edit_form', 'wp_kama_category_edit_form_action', 10, 2 );
/**
* Function for `category_edit_form` action-hook.
*
* @param WP_Term $tag Current taxonomy term object.
* @param string $taxonomy Current taxonomy slug.
*
* @return void
*/
function wp_kama_category_edit_form_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
category_edit_form
wp-admin/edit-tag-form.php 296
do_action( "{$taxonomy}_edit_form", $tag, $taxonomy );