apply_filters_ref_array( 'noptin_subscribers_pre_query', array|null $results , Noptin_Subscriber_Query $this )
Filters the subscribers query array before the query takes place.
Description Description
Return a non-null value to bypass the default Noptin subscriber queries. Filtering functions that require pagination information are encouraged to set the total_subscribers
property of the Noptin_Subscriber_Query object, passed to the filter by reference. If Noptin_Subscriber_Query does not perform a database query, it will not have enough information to generate these values itself.
Parameters Parameters
- $results
(array|null) Return an array of subscriber data to short-circuit the subscriber query or null to allow Noptin to run its normal queries.
- $this
(Noptin_Subscriber_Query) The Noptin_Subscriber_Query instance (passed by reference).
Source Source
Changelog Changelog
Version | Description |
---|---|
1.2.7 | Introduced. |