WP_Comment::populated_children( bool $set )

In this article

Sets the ‘populated_children’ flag.

Description

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

Parameters

$setboolrequired
Whether the comment’s children have already been populated.

Source

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

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

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