add_tag_form_pre
Deprecated since 3.0.0. It is no longer supported and may be removed in future releases. See (taxonomy)_pre_add_form.
Fires before the Add Tag form.
Usage
add_action( 'add_tag_form_pre', 'wp_kama_add_tag_form_pre_action', 10, 2 );
/**
* Function for `add_tag_form_pre` action-hook.
*
* @param string $taxonomy The taxonomy slug.
* @param $string
*
* @return void
*/
function wp_kama_add_tag_form_pre_action( $taxonomy, $string ){
// action...
}
- $taxonomy(string)
- The taxonomy slug.
- $string
- -
Changelog
| Since 2.5.0 | Introduced. |
| Deprecated since 3.0.0 | Use {@see '{$taxonomy}_pre_add_form'} instead. |
Where the hook is called
In file: /wp-admin/edit-tags.php
add_tag_form_pre
wp-admin/edit-tags.php 418
do_action_deprecated( 'add_tag_form_pre', array( $taxonomy ), '3.0.0', '{$taxonomy}_pre_add_form' );