WordPress at a glance
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() on a childless comment will not trigger unneeded database queries.

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

No Hooks.

Return

Null. Nothing.

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.

Code of WP_Comment::populated_children() WP 5.5.1

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