WP_Query::next_comment() public WP 2.2.0
Iterate current comment index and return WP_Comment object.
{} Это метод класса: WP_Query{}
Хуков нет.
Возвращает
WP_Comment. Comment object.
Использование
global $wp_query; $wp_query->next_comment();
Список изменений
С версии 2.2.0 | Введена. |
Код WP_Query::next_comment() WP Query::next comment WP 5.6.2
public function next_comment() {
$this->current_comment++;
$this->comment = $this->comments[ $this->current_comment ];
return $this->comment;
}