public/wordpress/wp-content/plugins/wp-courseware/includes/functions/backcompat.php
/**
 * Save the settings to the WordPress settings table.
 *
 * @since 1.0.0
 *
 * @param array $settingDetails The list of settings to be saved.
 * @param string $settingPrefix The string key used to save the array of settings.
 *
 * @return bool True if the settings were saved, false otherwise.
 */
Save the settings to the WordPress settings table.

@param array $settingDetails The list of settings to be saved.
@param string $settingPrefix The string key used to save the array of settings.

@return bool True if the settings were saved, false otherwise.
Save the settings to the WordPress settings table . @param array $settingDetails The list of settings to be saved . @param string $settingPrefix The string key used to save the array of settings . @return bool True if the settings were saved false otherwise .
function WPCW_TidySettings_saveSettings( $settingDetails, $settingPrefix ) {
	if ( ! ( $settingDetails && is_array( $settingDetails ) ) ) {
		error_log( 'SettingsForm: Settings details are null or not in an array.' );
		return false;
	}
	if ( ! $settingPrefix ) {
		error_log( 'SettingsForm: Settings Prefix is empty, so nothing can be saved.' );
		return false;
	}
	update_option( $settingPrefix, serialize( $settingDetails ) );
	return true;
}
function WPCW_TidySettings_saveSettings ( $ settingDetails , $ settingPrefix ) { if ( ! ( $ settingDetails && is_array ( $ settingDetails ) ) ) { error_log ( 'SettingsForm: Settings details are null or not in an array.' ) ; return false ; } if ( ! $ settingPrefix ) { error_log ( 'SettingsForm: Settings Prefix is empty, so nothing can be saved.' ) ; return false ; } update_option ( $ settingPrefix , serialize ( $ settingDetails ) ) ; return true ; }
Save the settings to the WordPress settings table.
Save the settings to the WordPress settings table .
// Convert array to string for saving, then store in settings table.