WP_Comment::add_child( WP_Comment $child )

In this article

Adds a child to the comment.

Description

Used by WP_Comment_Query when bulk-filling descendants.

Parameters

$childWP_Commentrequired
Child comment.

Source

public function add_child( WP_Comment $child ) {
	$this->children[ $child->comment_ID ] = $child;
}

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

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