W3cubDocs

/WordPress

do_action( “add_meta_boxes_{$post_type}”, WP_Post $post )

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.

Possible hook names include:

  • add_meta_boxes_post
  • add_meta_boxes_page
  • add_meta_boxes_attachment

Parameters

$postWP_Post
Post object.

Source

do_action( "add_meta_boxes_{$post_type}", $post );

Changelog

Version Description
3.0.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/add_meta_boxes_post_type