WP_Comments_List_Table::no_items
Displays a message when no comments are found.
Метод класса: WP_Comments_List_Table{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WP_Comments_List_Table = new WP_Comments_List_Table(); $WP_Comments_List_Table->no_items();
Заметки
Global. Строка. $comment_status The current comment status filter. |
Код WP_Comments_List_Table::no_items() WP Comments List Table::no items WP 7.1
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.' );
}
}