Sets the ‘populated_children’ flag.
This flag is important for ensuring that calling get_children() on a childless comment will not trigger unneeded database queries.
$setboolrequired
public function populated_children( $set ) {
$this->populated_children = (bool) $set;
}
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_comment/populated_children