add_meta_boxes_(post_type)
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.
Possible hook names include:
Usage
add_action( 'add_meta_boxes_(post_type)', 'wp_kama_add_meta_boxes_post_type_action' ); /** * Function for `add_meta_boxes_(post_type)` action-hook. * * @param WP_Post $post Post object. * * @return void */ function wp_kama_add_meta_boxes_post_type_action( $post ){ // action... }
- $post(WP_Post)
- Post object.
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
add_meta_boxes_(post_type)
wp-admin/includes/meta-boxes.php 1733
do_action( "add_meta_boxes_{$post_type}", $post );