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);

Arguments

NameType(s)Description
$pagePage int
$fieldField string
$code

Return value

Comment null


FieldtypeComments methods and properties

API reference based on ProcessWire core version 3.0.251