LLMS_Abstract_Notification_Controller::has_subscriber_received( string $type, mixed $subscriber )
Determine if the notification is a potential duplicate
Parameters Parameters
- $type
-
(string) (Required) Notification type id.
- $subscriber
-
(mixed) (Required) WP User ID for the subscriber, email address, phone number, etc...
Return Return
(boolean)
Source Source
File: includes/abstracts/llms.abstract.notification.controller.php
*/
public function has_subscriber_received( $type, $subscriber ) {
$query = new LLMS_Notifications_Query(
array(
'post_id' => $this->post_id,
'subscriber' => $subscriber,
'types' => $type,
'trigger_id' => $this->id,
'user_id' => $this->user_id,
'per_page' => 1,
'no_found_rows' => true,
)
);
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 6.0.0 | Fixed how the protected LLMS_Notifications_Query::$found_results property is accessed. |
| 3.11.0 | Introduced. |