W3cubDocs

/WordPress

WP_Comments_List_Table::no_items()

Source

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.' );
	}
}

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_comments_list_table/no_items