LLMS_Install::create_options()

Store all default options in the DB.


Return Return

(void)


Top ↑

Source Source

File: includes/class.llms.install.php

225
226
227
228
229
230
231
232
233
234
235
236
237
public static function create_options() {
 
    $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' ) );
            }
        }
    }
}


Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Removed loading of class files that don't instantiate their class in favor of autoloading.
4.0.0 Include abstract table file.
3.8.0 Unknown.
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.