do_meta_boxes action-hookWP 3.0.0

Fires after meta boxes have been added.

Fires once for each of the default meta box contexts: normal, advanced, and side.

Usage

add_action( 'do_meta_boxes', 'wp_kama_do_meta_boxes_action', 10, 3 );

/**
 * Function for `do_meta_boxes` action-hook.
 * 
 * @param string                $post_type Post type of the post on Edit Post screen, 'link' on Edit Link screen, 'dashboard' on Dashboard screen.
 * @param string                $context   Meta box context. Possible values include 'normal', 'advanced', 'side'.
 * @param WP_Post|object|string $post      Post object on Edit Post screen, link object on Edit Link screen, an empty string on Dashboard screen.
 *
 * @return void
 */
function wp_kama_do_meta_boxes_action( $post_type, $context, $post ){

	// action...
}
$post_type(string)
Post type of the post on Edit Post screen, 'link' on Edit Link screen, 'dashboard' on Dashboard screen.
$context(string)
Meta box context. Possible values include 'normal', 'advanced', 'side'.
$post(WP_Post|object|string)
Post object on Edit Post screen, link object on Edit Link screen, an empty string on Dashboard screen.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

register_and_do_post_meta_boxes()
do_meta_boxes
wp_dashboard_setup()
do_meta_boxes
wp-admin/includes/meta-boxes.php 1748
do_action( 'do_meta_boxes', $post_type, 'normal', $post );
wp-admin/edit-link-form.php 49
do_action( 'do_meta_boxes', 'link', 'normal', $link );
wp-admin/edit-link-form.php 51
do_action( 'do_meta_boxes', 'link', 'advanced', $link );
wp-admin/edit-link-form.php 53
do_action( 'do_meta_boxes', 'link', 'side', $link );
wp-admin/includes/dashboard.php 162
do_action( 'do_meta_boxes', $screen->id, 'normal', '' );
wp-admin/includes/dashboard.php 165
do_action( 'do_meta_boxes', $screen->id, 'side', '' );
wp-admin/includes/meta-boxes.php 1750
do_action( 'do_meta_boxes', $post_type, 'advanced', $post );
wp-admin/includes/meta-boxes.php 1752
do_action( 'do_meta_boxes', $post_type, 'side', $post );

Where the hook is used in WordPress

Usage not found.