Get a child comment by ID.
(int) (Required) ID of the child.
(WP_Comment|bool) Returns the comment object if found, otherwise false.
File: wp-includes/class-wp-comment.php
public function get_child( $child_id ) { if ( isset( $this->children[ $child_id ] ) ) { return $this->children[ $child_id ]; } return false; }
Version | Description |
---|---|
4.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_comment/get_child