add_meta_boxes action-hookWP 3.0.0

Fires after all built-in meta boxes have been added.

Usage

add_action( 'add_meta_boxes', 'wp_kama_add_meta_boxes_action', 10, 2 );

/**
 * Function for `add_meta_boxes` action-hook.
 * 
 * @param string                    $object_type The type of the current object that meta boxes were added to. Can be 'post', 'page', custom post types, 'comment', or 'link'.
 * @param WP_Post|WP_Comment|object $object      The post, comment, or link object. Type varies depending on `$object_type`.
 *
 * @return void
 */
function wp_kama_add_meta_boxes_action( $object_type, $object ){

	// action...
}
$object_type(string)
The type of the current object that meta boxes were added to. Can be 'post', 'page', custom post types, 'comment', or 'link'.
$object(WP_Post|WP_Comment|object)
The post, comment, or link object. Type varies depending on $object_type.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

register_and_do_post_meta_boxes()
add_meta_boxes
wp-admin/includes/meta-boxes.php 1692
do_action( 'add_meta_boxes', $post_type, $post );
wp-admin/edit-link-form.php 37
do_action( 'add_meta_boxes', 'link', $link );
wp-admin/edit-form-comment.php 257
do_action( 'add_meta_boxes', 'comment', $comment );

Where the hook is used in WordPress

Usage not found.