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
Return Return
(void)
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(); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: