WP_Comment::populated_children()publicWP 4.4.0

Sets the 'populated_children' flag.

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

Method of the class: WP_Comment{}

No Hooks.

Return

null. Nothing (null).

Usage

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

Changelog

Since 4.4.0 Introduced.

WP_Comment::populated_children() code WP 6.5.2

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