mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-03 03:49:21 +00:00
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 Built from https://develop.svn.wordpress.org/trunk@42676 git-svn-id: http://core.svn.wordpress.org/trunk@42504 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8ad4538d0f
commit
332b9844a9
@ -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>';
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0-alpha-42675';
|
||||
$wp_version = '5.0-alpha-42676';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user