WordPress at a glance
function is not described

WP_Comment::add_child() public WP 4.4.0

Add a child to the comment.

Used by WP_Comment_Query when bulk-filling descendants.

{} It's a method of the class: WP_Comment{}

No Hooks.

Return

null. Nothing.

Usage

$WP_Comment = new WP_Comment();
$WP_Comment->add_child( $child );
$child(WP_Comment) (required)
Child comment.

Changelog

Since 4.4.0 Introduced.

Code of WP_Comment::add_child() WP 5.7.2

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