LLMS_Abstract_Notification_Controller::send( bool $force = false )

Send all the subscriptions


Description Description


Parameters Parameters

$force

(bool) (Optional) if true, will force a send even if duplicate's only applies to controllers that flag $this->auto_dupcheck to true

Default value: false


Top ↑

Return Return

(void)


Top ↑

Source Source

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

	public function send( $force = false ) {

		$this->add_subscriptions();

		foreach ( $this->get_subscriptions() as $subscriber => $types ) {

			foreach ( $types as $type ) {

				$this->send_one( $type, $subscriber, $force );

			}
		}

		// cleanup subscriptions so if the notification
		// is triggered again we don't have incorrect subscribers
		// on the next trigger
		// this happens when receipts are triggered in bulk by action scheduler
		$this->unset_subscriptions();

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.8.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: