Skip to content

Commit 223bed7

Browse files
committed
Update hook documentation for add_meta_boxes_{}
1 parent b0134e9 commit 223bed7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/wp-admin/includes/meta-boxes.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,17 +1687,21 @@ function register_and_do_post_meta_boxes( $post ) {
16871687
/**
16881688
* Fires after all built-in meta boxes have been added, contextually for the given post type.
16891689
*
1690-
* The dynamic portion of the hook name, `$post_type`, refers to the post type of the post.
1690+
* The dynamic portion of the hook name, `$post_type`, refers to the post type of the post,
1691+
* or the object type (comment, link).
16911692
*
16921693
* Possible hook names include:
16931694
*
16941695
* - `add_meta_boxes_post`
16951696
* - `add_meta_boxes_page`
16961697
* - `add_meta_boxes_attachment`
1698+
* - `add_meta_boxes_comment`
1699+
* - `add_meta_boxes_link`
16971700
*
16981701
* @since 3.0.0
16991702
*
1700-
* @param WP_Post $post Post object.
1703+
* @param WP_Post|WP_Comment|object $post The post, comment, or link object. Type varies depending on
1704+
* the hook name.
17011705
*/
17021706
do_action( "add_meta_boxes_{$post_type}", $post );
17031707

0 commit comments

Comments
 (0)