Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions src/wp-admin/includes/meta-boxes.php
Original file line number Diff line number Diff line change
Expand Up @@ -1677,25 +1677,31 @@ function register_and_do_post_meta_boxes( $post ) {
*
* @since 3.0.0
*
* @param string $post_type Post type.
* @param WP_Post $post Post object.
* @param string $object_type The type of the current object that meta boxes were added to.
* Can be 'post', 'page', custom post types, 'comment', or 'link'.
* @param WP_Post|WP_Comment|object $object The post, comment, or link object. Type varies depending on
* `$object_type`.
*/
do_action( 'add_meta_boxes', $post_type, $post );

/**
* Fires after all built-in meta boxes have been added, contextually for the given post type.
*
* The dynamic portion of the hook name, `$post_type`, refers to the post type of the post.
* The dynamic portion of the hook name, `$post_type`, refers to the post type of the post,
* or the object type (comment, link).
*
* Possible hook names include:
*
* - `add_meta_boxes_post`
* - `add_meta_boxes_page`
* - `add_meta_boxes_attachment`
* - `add_meta_boxes_comment`
* - `add_meta_boxes_link`
*
* @since 3.0.0
*
* @param WP_Post $post Post object.
* @param WP_Post|WP_Comment|object $object The post, comment, or link object. Type varies depending on
* the hook name.
*/
do_action( "add_meta_boxes_{$post_type}", $post );

Expand All @@ -1706,11 +1712,11 @@ function register_and_do_post_meta_boxes( $post ) {
*
* @since 3.0.0
*
* @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.
* @param string $object_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 $object 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 */
Expand Down
Loading