WP_Comment::get_child( int $child_id ): WP_Comment|false

In this article

Gets a child comment by ID.

Parameters

$child_idintrequired
ID of the child.

Return

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

Source

public function get_child( $child_id ) {
	if ( isset( $this->children[ $child_id ] ) ) {
		return $this->children[ $child_id ];
	}

	return false;
}

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.