MP_Addon_Zoho_Settings::default_settings()

Set default settings.

Contents


Source Source

File: calculator-zoho-add-on/inc/MP_Addon_Zoho_Settings.php

	public static function default_settings() {

		if(isset(get_option( MortgagePlatform::$prefix . 'zoho' )['zoho_redirect_uri'])) {
			$settings                              = get_option( MortgagePlatform::$prefix . 'zoho' );
			$settings['zoho_homepage_url'] = str_replace('127.0.0.1','localhost',get_site_url());
			$settings['zoho_redirect_uri'] = str_replace('127.0.0.1','localhost',get_admin_url()) . 'admin.php?page=mortgage_platform&tab=zoho';
			update_option( MortgagePlatform::$prefix . 'zoho', $settings );

		}

	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.