MP_Addon_Microsoft_Spreadsheets_Settings::microsoft_access( array $args )
Microsoft authorization callback.
Contents
Parameters Parameters
- $args
-
(array) (Required) arguments of settings
Source Source
File: calculator-microsoft-spreadsheets-add-on/inc/MP_Addon_Microsoft_Spreadsheets_Settings.php
public function microsoft_access($args){
if ( !empty( get_option( MortgagePlatform::$prefix . 'microsoft_sheet' )['microsoft_sheet_tenant_id'] ) &&
!empty( get_option( MortgagePlatform::$prefix . 'microsoft_sheet' )['microsoft_sheet_client_id'] ) &&
!empty( get_option( MortgagePlatform::$prefix . 'microsoft_sheet' )['microsoft_sheet_client_secret'] ) &&
!empty( get_option( MortgagePlatform::$prefix . 'microsoft_sheet' )['microsoft_sheet_redirect_uri'] )
) {
echo $this->get_token_button($args);
} else {
echo '<p>' . __("Please enter tenant, client id, client secret, redirect url.", "CalculatorsMicrosoftSpreadsheetsAddon") . '</p>';
}
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |