From 209baca2ca4bea13ab64c5a3e7dee0abd56f9a8a Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Fri, 9 Feb 2018 15:54:56 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/template.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index 9791748ee0..21002ba1f9 100644 --- a/src/wp-admin/includes/template.php +++ b/src/wp-admin/includes/template.php @@ -361,6 +361,16 @@ function get_inline_data( $post ) { echo '
' . esc_html( get_post_format( $post->ID ) ) . '
'; } + /** + * 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 ''; }