MP_Addon_Microsoft_Spreadsheets_Settings::default_settings()
Set default settings.
Source Source
File: calculator-microsoft-spreadsheets-add-on/inc/MP_Addon_Microsoft_Spreadsheets_Settings.php
public static function default_settings() {
if(isset(get_option( MortgagePlatform::$prefix . 'microsoft_sheet' )['microsoft_sheet_redirect_uri'])) {
$settings = get_option( MortgagePlatform::$prefix . 'microsoft_sheet' );
$settings['microsoft_sheet_redirect_uri'] = str_replace('127.0.0.1','localhost',get_admin_url()) . 'admin.php?page=mortgage_platform&tab=microsoft_sheet';
update_option( MortgagePlatform::$prefix . 'microsoft_sheet', $settings );
}
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |