WP_Comment::populated_children

Advertisement

Summery Summery

Set the ‘populated_children’ flag.

Syntax Syntax

WP_Comment::populated_children( bool $set )

Description Description

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

Parameters Parameters

$set

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

Source Source

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.