WordPress at Your Fingertips
function is not described

WP_Comment::populated_children() public WP 4.4.0

Set the 'populated_children' flag.

This flag is important for ensuring that calling get_children() a childless comment will not trigger unneeded database queries.

{} It's a method of the class: WP_Comment{}

No Hooks.


null. Nothing.


$WP_Comment = new WP_Comment();
$WP_Comment->populated_children( $set );
$set(true|false) (required)
Whether the comment's children have already been populated.


Since 4.4.0 Introduced.

Code of WP_Comment::populated_children() WP 5.8

public function populated_children( $set ) {
	$this->populated_children = (bool) $set;