CommentField::getCommentByCode()
Given a comment code or subcode, return the associated comment ID or 0 if it doesn't exist
Usage
$comment = $commentField->getCommentByCode($page, string $code);
Arguments
CommentField methods and properties
API reference based on ProcessWire core version 3.0.251