WP_Comment::get_child( int $child_id )

Get a child comment by ID.

Parameters Parameters


(int) (Required) ID of the child.

Top ↑

Return Return

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

Top ↑

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

Top ↑

Changelog Changelog

Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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