WP_Comment::get_child( int $child_id )

Get a child comment by ID.


Parameters

$child_id

(Required) ID of the child.


Return

(WP_Comment|bool) Returns the comment object if found, otherwise false.


Source

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;
	}

Changelog

Changelog
Version Description
WP-4.4.0 Introduced.