WP_Comment::populated_children()
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 Comment::populated children WP 6.7.2
public function populated_children( $set ) { $this->populated_children = (bool) $set; }