CommentField::getCommentsByID()

Get multiple comments by ID

Available since version 3.0.255.

Usage

// basic usage
$items = $commentField->getCommentsByID(array $ids);

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

Arguments

NameType(s)Description
$idsarray

Comment IDs

$page (optional)Page null

Optionally limit comments to this page

Return value


CommentField methods and properties

API reference based on ProcessWire core version 3.0.255