Return number of children (replies) for this comment
Available since version 3.0.153.
Example
$qty = $comment->numChildren([ 'minStatus' => Comment::statusApproved ]);
Usage
// basic usage
$int = $comment->numChildren();
// usage with all arguments
$int = $comment->numChildren(array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
options (optional) | array | Limit return value by specific properties (below):
|
Return value
int
Comment methods and properties
API reference based on ProcessWire core version 3.0.236