WP_Comment::get_child
Gets a child comment by ID.
Метод класса: WP_Comment{}
Хуков нет.
Возвращает
WP_Comment|false. Returns the comment object if found, otherwise false.
Использование
$WP_Comment = new WP_Comment(); $WP_Comment->get_child( $child_id );
- $child_id(int) (обязательный)
- ID of the child.
Список изменений
| С версии 4.4.0 | Введена. |
Код WP_Comment::get_child() WP Comment::get child WP 6.9
public function get_child( $child_id ) {
if ( isset( $this->children[ $child_id ] ) ) {
return $this->children[ $child_id ];
}
return false;
}