WP_Query::rewind_comments
Rewinds the comments, resets the comment index and comment to first.
Метод класса: WP_Query{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
global $wp_query; $wp_query->rewind_comments();
Список изменений
| С версии 2.2.0 | Введена. |
Код WP_Query::rewind_comments() WP Query::rewind comments WP 7.1
public function rewind_comments() {
$this->current_comment = -1;
if ( $this->comment_count > 0 ) {
$this->comment = $this->comments[0];
}
}