add_meta_boxes
This action is documented in wp-admin/edit-form-advanced.php.
Description
Parameters (2)
- 0. $link (string) =>
'link'
- The link.
- 1. $link (unknown)
- The link.
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 callback
- function action_add_meta_boxes( $link, $link ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'add_meta_boxes', 'action_add_meta_boxes', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'add_meta_boxes', 'action_add_meta_boxes', 10, 2 );
Defined (3)
The action is defined in the following location(s).
- /wp-admin/edit-link-form.php
- do_action( 'add_meta_boxes', 'link', $link );
- /wp-admin/edit-form-comment.php
- do_action( 'add_meta_boxes', 'comment', $comment );
- /wp-admin/edit-form-advanced.php
- do_action( 'add_meta_boxes', $post_type, $post );