add_category_form_pre
Deprecated from version 3.0.0. It is no longer supported and can be removed in future releases. See (taxonomy)_pre_add_form.
Fires before the Add Category form.
Usage
add_action( 'add_category_form_pre', 'wp_kama_add_category_form_pre_action', 10, 2 ); /** * Function for `add_category_form_pre` action-hook. * * @param object $arg Optional arguments cast to an object. * @param $string * * @return void */ function wp_kama_add_category_form_pre_action( $arg, $string ){ // action... }
- $arg(object)
- Optional arguments cast to an object.
- $string
- -
Changelog
Since 2.1.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_category_form_pre
wp-admin/edit-tags.php 394
do_action_deprecated( 'add_category_form_pre', array( (object) array( 'parent' => 0 ) ), '3.0.0', '{$taxonomy}_pre_add_form' );