WP_Comment::get_child( int $child_id )

Get a child comment by ID.


Description Description


Parameters Parameters

$child_id

(int) (Required) ID of the child.


Top ↑

Return Return

(WP_Comment|bool) 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

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.