WP_Query::next_comment(): WP_Comment

Iterate current comment index and return WP_Comment object.


Return

WP_Comment Comment object.


Top ↑

Source

File: wp-includes/class-wp-query.php. View all references

public function next_comment() {
	$this->current_comment++;

	/** @var WP_Comment */
	$this->comment = $this->comments[ $this->current_comment ];
	return $this->comment;
}


Top ↑

Changelog

Changelog
Version Description
2.2.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.