LLMS_Install::create_options()
Store all default options in the DB
Description Description
Return Return
(void)
Source Source
File: includes/class.llms.install.php
public static function create_options() { include_once( 'admin/class.llms.admin.settings.php' ); $settings = LLMS_Admin_Settings::get_settings_tabs(); foreach ( $settings as $section ) { foreach ( $section->get_settings( true ) as $value ) { if ( isset( $value['default'] ) && isset( $value['id'] ) ) { $autoload = isset( $value['autoload'] ) ? (bool) $value['autoload'] : true; add_option( $value['id'], $value['default'], '', ( $autoload ? 'yes' : 'no' ) ); } } } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: