LLMS_Abstract_Notification_Controller::has_subscriber_received( string $type, mixed $subscriber )

Determine if the notification is a potential duplicate

Parameters Parameters


(string) (Required) Notification type id.


(mixed) (Required) WP User ID for the subscriber, email address, phone number, etc...

Top ↑

Return Return


Top ↑

Source Source

File: includes/abstracts/llms.abstract.notification.controller.php

	public function has_subscriber_received( $type, $subscriber ) {

		$query = new LLMS_Notifications_Query(
				'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,

Top ↑

Changelog Changelog

Version Description
6.0.0 Fixed how the protected LLMS_Notifications_Query::$found_results property is accessed.
3.11.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.