FieldtypeComments::getCommentsByID()

Get multiple comments by ID

Available since version 3.0.255.

Usage

// basic usage
$items = $fieldtypeComments->getCommentsByID($field, array $ids);

// usage with all arguments
$items = $fieldtypeComments->getCommentsByID($field, array $ids, $page = null);

Arguments

NameType(s)Description
$fieldField string

Field object or name

$idsarray

Comment IDs

$page (optional)Page null

Optionally limit comments to this page

Return value


FieldtypeComments methods and properties

API reference based on ProcessWire core version 3.0.255