Add a child to the comment.
Used by WP_Comment_Query when bulk-filling descendants.
(WP_Comment) (Required) Child comment.
File: wp-includes/class-wp-comment.php
public function add_child( WP_Comment $child ) {
$this->children[ $child->comment_ID ] = $child;
} | Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_comment/add_child