WordPress.org

Make WordPress Core

Ticket #27833: 27833.diff

File 27833.diff, 857 bytes (added by Mte90, 4 years ago)

hook with docs

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

     
    275275
    276276        $title = esc_textarea( trim( $post->post_title ) );
    277277
    278         /** This filter is documented in wp-admin/edit-tag-form.php */
    279278        echo '
    280279<div class="hidden" id="inline_' . $post->ID . '">
    281280        <div class="post_title">' . $title . '</div>' .
     
    336335
    337336        if ( post_type_supports( $post->post_type, 'post-formats' ) )
    338337                echo '<div class="post_format">' . esc_html( get_post_format( $post->ID ) ) . '</div>';
    339 
     338       
     339        /**
     340         * Add your data in the quick edit view in the Post list table
     341         *
     342         * @param object $post The post object in the view.
     343         */
     344        do_action( 'inline_data', $post );
     345       
    340346        echo '</div>';
    341347}
    342348