Make WordPress Core

Changeset 43461 for branches/4.9


Ignore:
Timestamp:
07/16/2018 03:33:57 PM (6 years ago)
Author:
SergeyBiryukov
Message:

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.
Merges [42676] and [43460] to the 4.9 branch.
Fixes #36085.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-admin/includes/template.php

    r43366 r43461  
    337337    if ( post_type_supports( $post->post_type, 'post-formats' ) )
    338338        echo '<div class="post_format">' . esc_html( get_post_format( $post->ID ) ) . '</div>';
     339
     340    /**
     341     * Fires after outputting the fields for the inline editor for posts and pages.
     342     *
     343     * @since 4.9.8
     344     *
     345     * @param WP_Post      $post             The current post object.
     346     * @param WP_Post_Type $post_type_object The current post's post type object.
     347     */
     348    do_action( 'add_inline_data', $post, $post_type_object );
    339349
    340350    echo '</div>';
Note: See TracChangeset for help on using the changeset viewer.