edit_link_category_form_pre
Fires before the Edit Link Category form.
Description
Parameters (1)
- 0. $tag (object)
- Current link category term object.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'edit_link_category_form_pre', $tag );
- The following example is for adding a hook callback.
- // define the edit_link_category_form_pre callback
- function action_edit_link_category_form_pre( $tag ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'edit_link_category_form_pre', 'action_edit_link_category_form_pre', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'edit_link_category_form_pre', 'action_edit_link_category_form_pre', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /wp-admin/edit-tag-form.php
- do_action( 'edit_link_category_form_pre', $tag );