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_Data::get_llms_settings()
Get LifterLMS settings
Return Return
(array)
Source Source
File: includes/class.llms.data.php
private static function get_llms_settings() { $data = array(); $data['version'] = llms()->version; $data['db_version'] = get_option( 'lifterlms_db_version' ); $data['course_catalog'] = self::get_page_data( 'lifterlms_shop_page_id' ); $data['membership_catalog'] = self::get_page_data( 'lifterlms_memberships_page_id' ); $data['student_dashboard'] = self::get_page_data( 'lifterlms_myaccount_page_id' ); $data['checkout_page'] = self::get_page_data( 'lifterlms_checkout_page_id' ); $data['course_catalog_per_page'] = get_option( 'lifterlms_shop_courses_per_page' ); $data['course_catalog_sorting'] = get_option( 'lifterlms_shop_ordering' ); $data['membership_catalog_per_page'] = get_option( 'lifterlms_memberships_per_page' ); $data['membership_catalog_sorting'] = get_option( 'lifterlms_memberships_ordering' ); $data['site_membership'] = self::get_page_data( 'lifterlms_membership_required' ); $data['courses_endpoint'] = get_option( 'lifterlms_myaccount_courses_endpoint' ); $data['edit_endpoint'] = get_option( 'lifterlms_myaccount_edit_account_endpoint' ); $data['lost_password_endpoint'] = get_option( 'lifterlms_myaccount_lost_password_endpoint' ); $data['vouchers_endpoint'] = get_option( 'lifterlms_myaccount_redeem_vouchers_endpoint' ); $data['autogenerate_username'] = get_option( 'lifterlms_registration_generate_username', 'no' ); $data['password_strength_meter'] = get_option( 'lifterlms_registration_password_strength', 'no' ); $data['minimum_password_strength'] = get_option( 'lifterlms_registration_password_min_strength' ); $data['terms_required'] = get_option( 'lifterlms_registration_require_agree_to_terms', 'no' ); $data['terms_page'] = self::get_page_data( 'lifterlms_terms_page_id' ); $data['checkout_names'] = get_option( 'lifterlms_user_info_field_names_checkout_visibility' ); $data['checkout_address'] = get_option( 'lifterlms_user_info_field_address_checkout_visibility' ); $data['checkout_phone'] = get_option( 'lifterlms_user_info_field_phone_checkout_visibility' ); $data['checkout_email_confirmation'] = get_option( 'lifterlms_user_info_field_email_confirmation_checkout_visibility', 'no' ); $data['open_registration'] = get_option( 'lifterlms_enable_myaccount_registration', 'no' ); $data['registration_names'] = get_option( 'lifterlms_user_info_field_names_registration_visibility' ); $data['registration_address'] = get_option( 'lifterlms_user_info_field_address_registration_visibility' ); $data['registration_phone'] = get_option( 'lifterlms_user_info_field_phone_registration_visibility' ); $data['registration_voucher'] = get_option( 'lifterlms_voucher_field_registration_visibility' ); $data['registration_email_confirmation'] = get_option( 'lifterlms_user_info_field_email_confirmation_registration_visibility', 'no' ); $data['account_names'] = get_option( 'lifterlms_user_info_field_names_account_visibility' ); $data['account_address'] = get_option( 'lifterlms_user_info_field_address_account_visibility' ); $data['account_phone'] = get_option( 'lifterlms_user_info_field_phone_account_visibility' ); $data['account_email_confirmation'] = get_option( 'lifterlms_user_info_field_email_confirmation_account_visibility', 'no' ); $data['confirmation_endpoint'] = get_option( 'lifterlms_myaccount_confirm_payment_endpoint' ); $data['force_ssl_checkout'] = get_option( 'lifterlms_checkout_force_ssl' ); $data['country'] = get_lifterlms_country(); $data['currency'] = get_lifterlms_currency(); $data['currency_position'] = get_option( 'lifterlms_currency_position' ); $data['thousand_separator'] = get_option( 'lifterlms_thousand_separator' ); $data['decimal_separator'] = get_option( 'lifterlms_decimal_separator' ); $data['decimals'] = get_option( 'lifterlms_decimals' ); $data['trim_zero_decimals'] = get_option( 'lifterlms_trim_zero_decimals', 'no' ); $data['recurring_payments'] = ( LLMS_Site::get_feature( 'recurring_payments' ) ) ? 'yes' : 'no'; $data['email_from_address'] = get_option( 'lifterlms_email_from_address' ); $data['email_from_name'] = get_option( 'lifterlms_email_from_name' ); $data['email_footer_text'] = get_option( 'lifterlms_email_footer_text' ); $data['email_header_image'] = get_option( 'lifterlms_email_header_image' ); $data['cert_bg_width'] = get_option( 'lifterlms_certificate_bg_img_width' ); $data['cert_bg_height'] = get_option( 'lifterlms_certificate_bg_img_height' ); $data['cert_legacy_compat'] = get_option( 'lifterlms_certificate_legacy_image_size' ); return $data; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.24.0 | Unknown. |
3.0.0 | Introduced. |