WP_Post_Comments_List_Table::display
Method of the class: WP_Post_Comments_List_Table{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WP_Post_Comments_List_Table = new WP_Post_Comments_List_Table(); $WP_Post_Comments_List_Table->display( $output_empty );
- $output_empty(true|false)
- .
Default:false
WP_Post_Comments_List_Table::display() WP Post Comments List Table::display code WP 7.0
<?php
public function display( $output_empty = false ) {
$singular = $this->_args['singular'];
wp_nonce_field( 'fetch-list-' . get_class( $this ), '_ajax_fetch_list_nonce' );
?>
<table class="<?php echo implode( ' ', $this->get_table_classes() ); ?>" style="display:none;">
<tbody id="the-comment-list"
<?php
if ( $singular ) {
echo " data-wp-lists='list:$singular'";
}
?>
>
<?php
if ( ! $output_empty ) {
$this->display_rows_or_placeholder();
}
?>
</tbody>
</table>
<?php
}