WP_Comments_List_Table::no_items() WordPress Method
The WP_Comments_List_Table::no_items() method is used to display a message when there are no comments to display in the list table.
WP_Comments_List_Table::no_items() #
Source
File: wp-admin/includes/class-wp-comments-list-table.php
public function no_items() {
global $comment_status;
if ( 'moderated' === $comment_status ) {
_e( 'No comments awaiting moderation.' );
} elseif ( 'trash' === $comment_status ) {
_e( 'No comments found in Trash.' );
} else {
_e( 'No comments found.' );
}
}
Expand full source codeCollapse full source codeView on TracView on GitHub