do_meta_boxes
This action is documented in wp-admin/edit-form-advanced.php.
Description
Parameters (3)
- 0. $link (string) =>
'link'
- The link.
- 1. $normal (string) =>
'normal'
- The normal.
- 2. $link (unknown)
- The link.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'do_meta_boxes', $link, $normal, $link );
- The following example is for adding a hook callback.
- // define the do_meta_boxes callback
- function action_do_meta_boxes( $link, $normal, $link ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'do_meta_boxes', 'action_do_meta_boxes', 10, 3 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'do_meta_boxes', 'action_do_meta_boxes', 10, 3 );
Defined (8)
The action is defined in the following location(s).
- /wp-admin/edit-link-form.php
- do_action( 'do_meta_boxes', 'link', 'normal', $link );
- do_action( 'do_meta_boxes', 'link', 'advanced', $link );
- do_action( 'do_meta_boxes', 'link', 'side', $link );
- /wp-admin/edit-form-advanced.php
- do_action( 'do_meta_boxes', $post_type, 'normal', $post );
- do_action( 'do_meta_boxes', $post_type, 'advanced', $post );
- do_action( 'do_meta_boxes', $post_type, 'side', $post );
- /wp-admin/includes/dashboard.php
- do_action( 'do_meta_boxes', $screen->id, 'normal', '' );
- do_action( 'do_meta_boxes', $screen->id, 'side', '' );