WP_Comment::add_child

Advertisement

Summery Summery

Add a child to the comment.

Syntax Syntax

WP_Comment::add_child( WP_Comment $child )

Description Description

Used by WP_Comment_Query when bulk-filling descendants.

Parameters Parameters

$child

(WP_Comment) (Required) Child comment.

Source Source

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

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

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.