WordPress.org

Make WordPress Core

Changeset 42676


Ignore:
Timestamp:
02/09/2018 03:54:56 PM (2 years ago)
Author:
johnbillion
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

Fixes #36085

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/template.php

    r42412 r42676  
    361361        echo '<div class="post_format">' . esc_html( get_post_format( $post->ID ) ) . '</div>';
    362362    }
     363
     364    /**
     365     * Fires after outputting the fields for the inline editor for posts and pages.
     366     *
     367     * @since 5.0.0
     368     *
     369     * @param WP_Post      $post             The current post object.
     370     * @param WP_Post_Type $post_type_object The current post's post type object.
     371     */
     372    do_action( 'add_inline_data', $post, $post_type_object );
    363373
    364374    echo '</div>';
Note: See TracChangeset for help on using the changeset viewer.