WordPress.org

Make WordPress Core

Changeset 42796


Ignore:
Timestamp:
03/08/2018 03:56:50 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve documentation for add_meta_boxes and do_meta_boxes actions.

Props danieltj, johnbillion, SergeyBiryukov.
Fixes #43229.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-advanced.php

    r42643 r42796  
    358358 * @since 3.0.0
    359359 *
    360  * @param string  $post_type Post type.
    361  * @param WP_Post $post      Post object.
     360 * @param string                    $post_type Post type for posts, 'comment' for comments,
     361 *                                             'link' for links.
     362 * @param WP_Post|WP_Comment|object $post      Post, comment, or link object.
    362363 */
    363364do_action( 'add_meta_boxes', $post_type, $post );
     
    381382 * @since 3.0.0
    382383 *
    383  * @param string  $post_type Post type of the post.
    384  * @param string  $context   string  Meta box context.
    385  * @param WP_Post $post      Post object.
     384 * @param string                $post_type Post type for posts, 'dashboard' for dashboard widgets,
     385 *                                         'link' for links.
     386 * @param string                $context   Meta box context. Accepts 'normal', 'advanced', 'side'.
     387 * @param WP_Post|string|object $post      Post object for posts, empty string for dashboard widgets,
     388 *                                         link object for links.
    386389 */
    387390do_action( 'do_meta_boxes', $post_type, 'normal', $post );
Note: See TracChangeset for help on using the changeset viewer.