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

NameType(s)Description
$pagePage int string
$codestring

Return value

Comment null


CommentField methods and properties

API reference based on ProcessWire core version 3.0.251