wppaste
WordPress

do_action( 'do_meta_boxes', string $object_type, string $context, WP_Post|object|string $object )

Since
3.0.0
Fires after meta boxes have been added.

Description

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

Compatibility

WordPress
since 3.0.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$object_typestring
Post type of the post on Edit Post screen, 'link' on Edit Link screen, 'dashboard' on Dashboard screen.
$contextstring
Meta box context. Possible values include 'normal', 'advanced', 'side'.
$objectWP_Post|object|string
Post object on Edit Post screen, link object on Edit Link screen, an empty string on Dashboard screen.

Where this hook fires · 8

  • wp-admin/edit-link-form.php:49file scope
  • wp-admin/edit-link-form.php:51file scope
  • wp-admin/edit-link-form.php:53file scope
  • wp-admin/includes/dashboard.php:162wp_dashboard_setup()
  • wp-admin/includes/dashboard.php:165wp_dashboard_setup()
  • wp-admin/includes/meta-boxes.php:1728register_and_do_post_meta_boxes()
  • wp-admin/includes/meta-boxes.php:1730register_and_do_post_meta_boxes()
  • wp-admin/includes/meta-boxes.php:1732register_and_do_post_meta_boxes()

Source code

	 * @param string                $object_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 $object      Post object on Edit Post screen, link object on Edit Link screen,	 *                                           an empty string on Dashboard screen.	 */	do_action( 'do_meta_boxes', $post_type, 'normal', $post );	/** This action is documented in wp-admin/includes/meta-boxes.php */	do_action( 'do_meta_boxes', $post_type, 'advanced', $post );	/** This action is documented in wp-admin/includes/meta-boxes.php */	do_action( 'do_meta_boxes', $post_type, 'side', $post );}

Changelog

Introduced in 3.0.0. 4 changes between 6.7.7 and 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

7.0.4
Parameter $object_type added.verified against source
7.0.4
Parameter $object added.verified against source
7.0.4
Parameter $post_type removed.verified against source
7.0.4
Parameter $post removed.verified against source
3.0.0
Introduced.from the docblock

About this page

Parsed data
Generated from the wordpress-develop 7.0.4 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.