ProMailerSubscribers::find()

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

NameType(s)Description
$options (optional)array
  • list (ProMailerList|int): List to limit find to
  • sort (string): What to sort by Default:'-created'
  • email (string): Find subscriber email that contains this text
  • custom (string): Find subscriber that matches string in custom data
  • confirmed (bool): Return only confirmed subscribers? Default:false
  • id (int): Count only subscribers greater than or equal to this subscriber ID Default:0
  • limit (int): Limit to this many subscribers per pagination Default:100
  • partial (bool): Perform a partial match rather than exact match? Default:true
  • count (bool): Return a count rather than subscribers? Default:false
  • delete (bool): Delete all found subscribers rather than return them? Default:false

Return value

ProMailerSubscribersArray int

Returns array of subscribers or integer if 'count' or 'delete' option specified


ProMailerSubscribers methods and properties

API reference based on ProcessWire core version 3.0.251