LLMS_Notification_Controller_Quiz_Failed::set_subscriber_options( string $type )

Setup the subscriber options for the notification


Parameters Parameters

$type

(string) (Required) notification type id


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/notifications/controllers/class.llms.notification.controller.quiz.failed.php

211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
protected function set_subscriber_options( $type ) {
 
    $options = array();
 
    switch ( $type ) {
 
        case 'basic':
            $options[] = $this->get_subscriber_option_array( 'student', 'yes' );
            break;
 
        case 'email':
            $options[] = $this->get_subscriber_option_array( 'course_author', 'no' );
            $options[] = $this->get_subscriber_option_array( 'custom', 'no' );
            break;
 
    }
 
    return $options;
 
}

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.