WP_Query::the_comment() WordPress Method
The WP_Query::the_comment() method is used to print the current comment to the screen. This is useful when you want to display a list of comments from a post or page.
WP_Query::the_comment() #
Sets up the current comment.
Source
File: wp-includes/class-wp-query.php
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' ); } }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.2.0 | Introduced. |