WP_Comment::populated_children()publicWP 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.

{} Это метод класса: WP_Comment{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$WP_Comment = new WP_Comment();
$WP_Comment->populated_children( $set );
$set(true|false) (обязательный)
Whether the comment's children have already been populated.

Список изменений

С версии 4.4.0 Введена.

Код WP_Comment::populated_children() WP 6.0

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