WP_Comment::get_child

Advertisement

Summery Summery

Get a child comment by ID.

Syntax Syntax

WP_Comment::get_child( int $child_id )

Parameters Parameters

$child_id

(int) (Required) ID of the child.

Return Return

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

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;

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.