Skip to content

Commit b0134e9

Browse files
committed
Update hook document to more accurately reflect the proper types
1 parent 2740a8e commit b0134e9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,8 +1677,10 @@ function register_and_do_post_meta_boxes( $post ) {
16771677
*
16781678
* @since 3.0.0
16791679
*
1680-
* @param string $post_type Post type.
1681-
* @param WP_Post $post Post object.
1680+
* @param string $post_type Post type of the current screen. Can be 'post', 'page',
1681+
* custom post types, 'comment', or 'link'.
1682+
* @param WP_Post|WP_Comment|object $post The post, comment, or link object. Type varies depending on
1683+
* `$post_type`.
16821684
*/
16831685
do_action( 'add_meta_boxes', $post_type, $post );
16841686

0 commit comments

Comments
 (0)