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...


Top ↑

Return Return

(boolean)


Top ↑

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,
			)
		);



Top ↑

Changelog 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.