Given a comment code or subcode, return the associated comment ID or 0 if it doesn't exist
Usage
$comment = $fieldtypeComments->getCommentByCode($page, $field, $code);
Arguments
Name | Type(s) | Description |
---|---|---|
page | Page, int | |
field | Field, string | |
code |
Return value
Comment
null
FieldtypeComments methods and properties
API reference based on ProcessWire core version 3.0.236