wppaste
WordPress

do_action( 'add_meta_boxes', string $post_type, WP_Post $post )

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

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

$post_typestring
Post type.
$postWP_Post
Post object.

Where this hook fires · 3

  • wp-admin/edit-form-comment.php:257file scope
  • wp-admin/edit-link-form.php:37file scope
  • wp-admin/includes/meta-boxes.php:1716register_and_do_post_meta_boxes()

Source code

	 *	 * @since 3.0.0	 *	 * @param string  $post_type Post type.	 * @param WP_Post $post      Post object.	 */	do_action( 'add_meta_boxes', $post_type, $post ); 	/**	 * Fires after all built-in meta boxes have been added, contextually for the given post type.	 *	 * The dynamic portion of the hook name, `$post_type`, refers to the post type of the 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 6.8.8 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.