From 8b17f6caeeef4fe551e0cbd945f51bd6298bf2d1 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 6 Sep 2019 00:05:10 +0000 Subject: [PATCH] Docs: Improve documentation for `do_meta_boxes` action. Props felipeelia, killua99, SergeyBiryukov. Fixes #46542. git-svn-id: https://develop.svn.wordpress.org/trunk@46071 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/meta-boxes.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/includes/meta-boxes.php b/src/wp-admin/includes/meta-boxes.php index d6e48544f7..cff73e11f2 100644 --- a/src/wp-admin/includes/meta-boxes.php +++ b/src/wp-admin/includes/meta-boxes.php @@ -1549,9 +1549,11 @@ function register_and_do_post_meta_boxes( $post ) { * * @since 3.0.0 * - * @param string $post_type Post type of the post. - * @param string $context string Meta box context. - * @param WP_Post $post Post object. + * @param string $post_type Post type of the post on Edit Post screen, 'link' on Edit Link screen, + * 'dashboard' on Dashboard screen. + * @param string $context Meta box context. Possible values include 'normal', 'advanced', 'side'. + * @param WP_Post|object|string $post Post object on Edit Post screen, link object on Edit Link screen, + * an empty string on Dashboard screen. */ do_action( 'do_meta_boxes', $post_type, 'normal', $post ); /** This action is documented in wp-admin/includes/meta-boxes.php */