Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Abstract_Notification_Controller::add_subscriptions()
Adds subscribers before sending a notifications
Description Description
Return Return
(void)
Source Source
File: includes/abstracts/llms.abstract.notification.controller.php
private function add_subscriptions() { foreach ( array_keys( $this->get_supported_types() ) as $type ) { foreach ( $this->get_subscribers_settings( $type ) as $subscriber_key => $enabled ) { if ( 'no' === $enabled ) { continue; } elseif ( 'custom' === $subscriber_key ) { $this->add_custom_subscriptions( $type ); } $subscriber = $this->get_subscriber( $subscriber_key ); if ( $subscriber ) { $this->subscribe( $subscriber, $type ); } } } }
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: