add_meta_boxes_link
Fires when link-specific meta boxes are added.
Description
Parameters (1)
- 0. $link (object)
- Link object.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'add_meta_boxes_link', $link );
- The following example is for adding a hook callback.
- // define the add_meta_boxes_link callback
- function action_add_meta_boxes_link( $link ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'add_meta_boxes_link', 'action_add_meta_boxes_link', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'add_meta_boxes_link', 'action_add_meta_boxes_link', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /wp-admin/edit-link-form.php
- do_action( 'add_meta_boxes_link', $link );