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:
parent
6e125f017e
commit
209baca2ca
@ -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>';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user