public/wordpress/wp-content/plugins/wp-courseware/includes/functions/backcompat.php
/**
 * Get just a single setting from the settings list.
 *
 * @since 1.0.0
 *
 * @param string $settingPrefix The string key used to store the array of settings.
 * @param string $settingName The name of the setting key for the individual setting to retrieve.
 * @param string $defaultValue The value to return if the setting was not found.
 *
 * @return string The value of the setting.
 */
Get just a single setting from the settings list.

@param string $settingPrefix The string key used to store the array of settings.
@param string $settingName The name of the setting key for the individual setting to retrieve.
@param string $defaultValue The value to return if the setting was not found.

@return string The value of the setting.
Get just a single setting from the settings list . @param string $settingPrefix The string key used to store the array of settings . @param string $settingName The name of the setting key for the individual setting to retrieve . @param string $defaultValue The value to return if the setting was not found . @return string The value of the setting .
function WPCW_TidySettings_getSettingSingle( $settingPrefix, $settingName, $defaultValue = false ) {
	$settings = WPCW_TidySettings_getSettings( $settingPrefix );
	if ( isset( $settings[ $settingName ] ) ) {
		return $settings[ $settingName ];
	} else {
		return $defaultValue;
	}
}
function WPCW_TidySettings_getSettingSingle ( $ settingPrefix , $ settingName , $ defaultValue = false ) { $ settings = WPCW_TidySettings_getSettings ( $ settingPrefix ) ; if ( isset ( $ settings [ $ settingName ] ) ) { return $ settings [ $ settingName ] ; } else { return $ defaultValue ; } }
Get just a single setting from the settings list.
Get just a single setting from the settings list .