WP_Query::the_comment
Sets up the current comment.
Method of the class: WP_Query{}
Hooks from the method
Returns
null. Nothing (null).
Usage
global $wp_query; $wp_query->the_comment();
Notes
- Global. WP_Comment.
$commentGlobal comment object.
Changelog
| Since 2.2.0 | Introduced. |
WP_Query::the_comment() WP Query::the comment code WP 7.0
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' );
}
}