add_category_form_pre
Fires before the Add Category form.
Description
Parameters (1)
- 0. $object_array_parent_0 — Optional. (object) =>
(object) array( 'parent' => 0 )
- Arguments cast to an object.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'add_category_form_pre', $object_array_parent_0 );
- The following example is for adding a hook callback.
- // define the add_category_form_pre callback
- function action_add_category_form_pre( $object_array_parent_0 ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'add_category_form_pre', 'action_add_category_form_pre', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'add_category_form_pre', 'action_add_category_form_pre', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /wp-admin/edit-tags.php
- do_action( 'add_category_form_pre', (object) array( 'parent' => 0 ) );