Posts, Post Types: Add a new `add_inline_data` action which allows extra fields to be added to the inline editing fields.

Props mensmaximus, NathanAtmoz

Fixes #36085


git-svn-id: https://develop.svn.wordpress.org/trunk@42676 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2018-02-09 15:54:56 +00:00
parent 6e125f017e
commit 209baca2ca
1 changed files with 10 additions and 0 deletions

View File

@ -361,6 +361,16 @@ function get_inline_data( $post ) {
echo '<div class="post_format">' . esc_html( get_post_format( $post->ID ) ) . '</div>';
}
/**
* Fires after outputting the fields for the inline editor for posts and pages.
*
* @since 5.0.0
*
* @param WP_Post $post The current post object.
* @param WP_Post_Type $post_type_object The current post's post type object.
*/
do_action( 'add_inline_data', $post, $post_type_object );
echo '</div>';
}