add_meta_boxes_{$post_type} WordPress Action Hook
The add_meta_boxes_{$post_type} hook allows you to add custom meta boxes to any post type on your WordPress site. This is a great way to add extra data to your posts, or to display data from other sources.
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
- $post
(WP_Post)Post object.
Source
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |