public/wordpress/wp-content/plugins/wp-courseware/includes/common/settings-api.php
/**
	 * Load Settings
	 *
	 * Store all settings in a single database entry
	 * and make sure the $settings array is either the default
	 * or the settings stored in the database.
	 *
	 * @since 4.3.0
	 */
Load Settings
Store all settings in a single database entry
and make sure the $settings array is either the default
or the settings stored in the database.


Load Settings Store all settings in a single database entry and make sure the $settings array is either the default or the settings stored in the database .
public function load_settings() {
		$this->settings = get_option( $this->get_key(), array() );
		if ( empty( $this->settings ) ) {
			$fields         = $this->get_fields();
			$this->settings = array_merge( array_fill_keys( array_keys( $fields ), '' ), wp_list_pluck( $fields, 'default' ) );
		}
	}
public function load_settings ( ) { $ this -> settings = get_option ( $ this -> get_key ( ) , array ( ) ) ; if ( empty ( $ this -> settings ) ) { $ fields = $ this -> get_fields ( ) ; $ this -> settings = array_merge ( array_fill_keys ( array_keys ( $ fields ) , '' ) , wp_list_pluck ( $ fields , 'default' ) ) ; } }
Load Settings
 Store all settings in a single database entry
 and make sure the $settings array is either the default
 or the settings stored in the database.
Load Settings Store all settings in a single database entry and make sure the $settings array is either the default or the settings stored in the database .
// If there are no settings defined, use defaults, if registered.