Install::set_default_options()
Set default option during DozentLMS activation.
Description
Example usage:
set_default_options();
See also
Source
File: classes/Install.php
public function set_default_options() { $options = [ 'redirect_back_after_logout' => '1', 'enable_focus_mode' => '1', 'enable_discussion' => '1', 'pagination_per_page' => '20', 'show_accept_terms_checkbox' => '1', 'login_error_message' => __( 'Incorrect username or password.', 'dozent' ), 'site_logo_id' => '', 'course_base_slug' => 'courses', 'course_category_base_slug' => 'course-category', 'lecture_base_slug' => 'lecture', 'assignment_base_slug' => 'assignment', 'quiz_base_slug' => 'quiz', 'dozent_dashboard_page_id' => '', 'dozent_user_signup_page_id' => '', 'course_archive_page_id' => '', 'terms_and_condition_page_id' => '', 'privacy_policy_page_id' => '', 'course_archive_page' => '-1', 'courses_col_per_row' => '3', 'courses_per_page' => '20', 'enable_dozent_earning' => '1', 'earning_admin_commission' => '40', 'earning_instructor_commission' => '60', 'dozent_earning_fees' => [ 'enable_fees_deducting' => '1', 'fees_name' => 'Platform Charge', 'fees_amount' => '20', 'fees_type' => 'percent', ], 'statement_show_per_page' => '20', 'min_withdraw_amount' => '10', ]; update_option('dozent_options', $options); }
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |