MP_Addon_Google_Spreadsheets_Settings::google_access( array $args )
Get google token refresh callback.
Contents
Parameters Parameters
- $args
-
(array) (Required) arguments of setting
Source Source
File: calculator-google-spreadsheets-add-on/inc/MP_Addon_Google_Spreadsheets_Settings.php
public function google_access( $args ) {
if ( isset(get_option( MortgagePlatform::$prefix . 'google_sheet' )['google_sheet_client_id']) && !empty( get_option( MortgagePlatform::$prefix . 'google_sheet' )['google_sheet_client_id'] ) &&
isset(get_option( MortgagePlatform::$prefix . 'google_sheet' )['google_sheet_client_secret']) && !empty( get_option( MortgagePlatform::$prefix . 'google_sheet' )['google_sheet_client_secret'] ) &&
isset(get_option( MortgagePlatform::$prefix . 'google_sheet' )['google_sheet_redirect_uri']) && !empty( get_option( MortgagePlatform::$prefix . 'google_sheet' )['google_sheet_redirect_uri'] )
) {
echo $this->get_token_button($args);
} else {
echo '<p>' . __("Please enter client id, client secret, redirect url.", "CalculatorsGoogleSpreadSheetsAddon") . '</p>';
}
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |