do_action( "add_meta_boxes_{$post_type}", WP_Post|WP_Comment|object $object )
- Since
- 3.0.0
Fires after all built-in meta boxes have been added, contextually for the given post type.
Description
The dynamic portion of the hook name, $post_type, refers to the post type of the post, or the object type (comment, link).
Possible hook names include:
add_meta_boxes_postadd_meta_boxes_pageadd_meta_boxes_attachmentadd_meta_boxes_commentadd_meta_boxes_link
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
$objectWP_Post|WP_Comment|object- The post, comment, or link object. Type varies depending on the hook name.
Where this hook fires · 1
wp-admin/includes/meta-boxes.php:1713register_and_do_post_meta_boxes()
Source code
* * @since 3.0.0 * * @param WP_Post|WP_Comment|object $object The post, comment, or link object. Type varies depending on * the hook name. */ do_action( "add_meta_boxes_{$post_type}", $post ); /** * Fires after meta boxes have been added. * * Fires once for each of the default meta box contexts: normal, advanced, and side. *Changelog
Introduced in 3.0.0. 2 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
7.0.4
Parameter
$object added.verified against source7.0.4
Parameter
$post removed.verified against source3.0.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 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.