On this page
do_action( 'do_meta_boxes', string $post_type, string $context, WP_Post|object|string $post )
Fires after meta boxes have been added.
Description
Fires once for each of the default meta box contexts: normal, advanced, and side.
Parameters
$post_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'. $postWP_Post|object|string-
Post object on Edit Post screen, link object on Edit Link screen, an empty string on Dashboard screen.
Source
File: wp-admin/includes/meta-boxes.php. View all references
do_action( 'do_meta_boxes', $post_type, 'normal', $post );
Related
Used By
| Used By | Description |
|---|---|
| register_and_do_post_meta_boxes() wp-admin/includes/meta-boxes.php | Registers the default post meta boxes, and runs the |
| wp_dashboard_setup() wp-admin/includes/dashboard.php | Registers dashboard widgets. |
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/do_meta_boxes