LLMS_Notification_Controller_Purchase_Receipt::set_subscriber_options( string $type )
Setup the subscriber options for the notification
Parameters Parameters
- $type
-
(string) (Required) Notification type id.
Return Return
(array)
Source Source
File: includes/notifications/controllers/class.llms.notification.controller.purchase.receipt.php
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 | protected function set_subscriber_options( $type ) { $options = array (); switch ( $type ) { case 'email' : $options [] = $this ->get_subscriber_option_array( 'author' , 'yes' ); $options [] = $this ->get_subscriber_option_array( 'student' , 'yes' ); $options [] = $this ->get_subscriber_option_array( 'custom' , 'no' ); break ; } return $options ; } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |