FieldtypeComments::getCommentByID()

Get a comment by ID or NULL if not found

Usage

$comment = $fieldtypeComments->getCommentByID($page, $field, int $id);

Arguments

NameType(s)Description
$pagePage int null

Provide Page object or ID, or null to auto-detect Page

$fieldField string

Field object or name

$idint

Comment ID

Return value

Comment null


FieldtypeComments methods and properties

API reference based on ProcessWire core version 3.0.251