Google_Sheet_Helpers::add_google_api_settings( $tabs )
Contents
Parameters Parameters
- $tabs
-
(Required)
Return Return
(mixed)
Source Source
File: src/integrations/google-sheet/helpers/google-sheet-helpers.php
public function add_google_api_settings( $tabs ) { if ( $this->has_valid_license() || $this->has_connection_data() || $this->is_from_modal_action() ) { $is_uncannyowl_google_sheet_settings_expired = get_option( '_uncannyowl_google_sheet_settings_expired', false ); $tab_url = admin_url( 'edit.php' ) . '?post_type=uo-recipe&page=uncanny-automator-settings&tab=' . $this->setting_tab; $tabs[ $this->setting_tab ] = array( 'name' => __( 'Google', 'uncanny-automator' ), 'title' => __( 'Google account settings', 'uncanny-automator' ), 'description' => $this->get_google_api_settings_description(), 'is_pro' => false, 'is_expired' => $is_uncannyowl_google_sheet_settings_expired, 'settings_field' => 'uap_automator_google_sheet_api_settings', 'wp_nonce_field' => 'uap_automator_google_sheet_api_nonce', 'save_btn_name' => 'uap_automator_google_sheet_api_save', 'save_btn_title' => __( 'Connect Google Sheets', 'uncanny-automator' ), 'fields' => array(), ); } return $tabs; }
Expand full source code Collapse full source code View on Github