add_meta_boxes

This action is documented in wp-admin/edit-form-advanced.php.

Description

do_action( 'add_meta_boxes', (unknown) $link, (unknown) $link ); 

Parameters (2)

0. $link (string) => 'link'
The link.
1. $link (unknown)
The link.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'add_meta_boxes', $link, $link ); 
The following example is for adding a hook callback.
  1. // define the add_meta_boxes callback 
  2. function action_add_meta_boxes( $link, $link ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'add_meta_boxes', 'action_add_meta_boxes', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. 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  
  1. do_action( 'add_meta_boxes', 'link', $link ); 
/wp-admin/edit-form-comment.php  
  1. do_action( 'add_meta_boxes', 'comment', $comment ); 
/wp-admin/edit-form-advanced.php  
  1. do_action( 'add_meta_boxes', $post_type, $post );