Get current pagination (limit=100) of subscribers for given list
Includes both confirmed and non-confirmed subscribers
Usage
// basic usage
$items = $proMailerSubscribers->find();
// usage with all arguments
$items = $proMailerSubscribers->find(array $options = []);
Arguments
| Name | Type(s) | Description |
|---|
$options (optional) | array | list (ProMailerList|int): List to limit find tosort (string): What to sort by Default:'-created'email (string): Find subscriber email that contains this textcustom (string): Find subscriber that matches string in custom data
Note that string in 'custom' containing selector like 'field=value' get converted to 'filters' option. partial (bool): Perform a partial match rather than exact match (for 'custom' or 'email')? Default:trueconfirmed (bool|int): Return only confirmed subscribers? Or -1 for only non-confirmed Default:falseid (int): Count only subscribers greater than or equal to this subscriber ID Default:0limit (int): Limit to this many subscribers per pagination Default:100count (bool): Return a count rather than subscribers? Default:falsedelete (bool): Delete all found subscribers rather than return them? Default:falsefilters (array): Find subscribers that match these [ key=value ] filter(s) in custom data.
To perform exact match, specify [ 'field' => '=value' ] or [ 'field' => 'value' ] (operator optional).
To perform partial match, specify [ 'field' => '%=value' ].
To perform NOT match, specify [ 'field' => '!=value' ] for exact, or [ 'field' => '!%=value' ] for partial.
|
Return value
ProMailerSubscribersArray intReturns array of subscribers or integer if 'count' or 'delete' option specified
ProMailerSubscribers methods and properties
API reference based on ProcessWire core version 3.0.255