FieldtypeComments::getCommentByCode()
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);
FieldtypeComments methods and properties
API reference based on ProcessWire core version 3.0.251