Get a comment by ID or NULL if not found
Usage
$comment = $fieldtypeComments->getCommentByID($page, $field, int $id);
Arguments
Name | Type(s) | Description |
---|---|---|
page | Page, int, null | Provide Page object or ID, or null to auto-detect Page |
field | Field, string | Field object or name |
id | int | Comment ID |
Return value
Comment
null
FieldtypeComments methods and properties
API reference based on ProcessWire core version 3.0.236