WP_Comment::populated_children( bool $set )

Set the ‘populated_children’ flag.


Description Description

This flag is important for ensuring that calling get_children() on a childless comment will not trigger unneeded database queries.


Top ↑

Parameters Parameters

$set

(bool) (Required) Whether the comment's children have already been populated.


Top ↑

Source Source

File: wp-includes/class-wp-comment.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.