tabs = array( 'auth' => 'Authentication', ); if($auth_settings = get_option('awca_auth_settings')){ if ( awca_fs()->is_not_paying() && !(awca_fs()->is_trial()) || (!awca_fs()->is_premium())) { $this->tabs = array( 'auth' => 'Authentication', 'track' => 'Tracking Settings', 'event' => 'Event Tracking', 'advance' => 'Advance Integrations', ); if(isset($auth_settings['property_id']) && (strpos($auth_settings['property_id'],'UA') !== false)){ $this->tabs = array_merge( $this->tabs,array('report'=>'Find Reports')); $this->tabs = array_merge( $this->tabs,array('status'=>'Integration Status')); }elseif(isset($auth_settings['tracking_id']) && (strpos($auth_settings['tracking_id'],'UA') !== false)){ $this->tabs = array_merge( $this->tabs,array('report'=>'Find Reports')); $this->tabs = array_merge( $this->tabs,array('status'=>'Integration Status')); } $this->tabs = array_merge( $this->tabs,array('upgrade' => 'Upgrade to Pro')); }else{ $this->tabs = array( 'auth' => 'Authentication', 'track' => 'Tracking Settings', 'event' => 'Event Tracking', 'advance__premium_only' => 'Advance Integrations', 'support__premium_only' => 'Support', ); if(isset($auth_settings['property_id']) && (strpos($auth_settings['property_id'],'UA') !== false)){ $this->tabs = array_merge( $this->tabs,array('report__premium_only'=>'Find Reports')); $this->tabs = array_merge( $this->tabs,array('status'=>'Integration Status')); }elseif(isset($auth_settings['tracking_id']) && (strpos($auth_settings['tracking_id'],'UA') !== false)){ $this->tabs = array_merge( $this->tabs,array('report__premium_only'=>'Find Reports')); $this->tabs = array_merge( $this->tabs,array('status'=>'Integration Status')); } } } $awca_config_status = AWCA_Auth::get_instance()->get_awca_config_status(); if(is_array($awca_config_status)){ $this->awca_config_status = $awca_config_status; } } /* Adding & Removing notice to admin section */ public function adding_notice(){ if(isset($_POST['awca_block_admin_notice'])){ unset( $_POST['awca_block_admin_notice']); update_option('awca_block_admin_notice',true); } if($awca_error_count = get_option('awca_error_count')) { if( ($awca_error_count > 0) && (!get_option('awca_block_admin_notice'))){ echo '
There are some configuration issues need to address for Woocommerce Analytics Plugin to work seemlessly. Click Here to address those.