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.

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

Хуков нет.

Возвращает

null. Ничего (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.5.2

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