We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2740a8e commit b0134e9Copy full SHA for b0134e9
src/wp-admin/includes/meta-boxes.php
@@ -1677,8 +1677,10 @@ function register_and_do_post_meta_boxes( $post ) {
1677
*
1678
* @since 3.0.0
1679
1680
- * @param string $post_type Post type.
1681
- * @param WP_Post $post Post object.
+ * @param string $post_type Post type of the current screen. Can be 'post', 'page',
+ * 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`.
1684
*/
1685
do_action( 'add_meta_boxes', $post_type, $post );
1686
0 commit comments