WP_Query::the_comment
Sets up the current comment.
Метод класса: WP_Query{}
Хуки из метода
Возвращает
null. Ничего (null).
Использование
global $wp_query; $wp_query->the_comment();
Заметки
Global. WP_Comment. $comment Global comment object. |
Список изменений
| С версии 2.2.0 | Введена. |
Код WP_Query::the_comment() WP Query::the comment WP 7.1.2
public function the_comment() {
global $comment;
$comment = $this->next_comment();
if ( 0 === $this->current_comment ) {
/**
* Fires once the comment loop is started.
*
* @since 2.2.0
*/
do_action( 'comment_loop_start' );
}
}