On this page
WP_Comment::populated_children( bool $set )
Set the ‘populated_children’ flag.
Description
This flag is important for ensuring that calling get_children() on a childless comment will not trigger unneeded database queries.
Parameters
$setbool Required-
Whether the comment's children have already been populated.
Source
File: wp-includes/class-wp-comment.php. View all references
public function populated_children( $set ) {
$this->populated_children = (bool) $set;
}
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_comment/populated_children