GC_Comment::get_child()

最后更新于:2021-11-26 11:30:02

GC_Comment::get_child( int$child_id)

Get a child comment by ID.

参数

$child_id

(int) (Required) ID of the child.

响应

(GC_Comment|false) 响应s the comment object if found, otherwise false.

源文件

文件: gc-includes/class-gc-comment.php

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

		return false;
	}