tabs = array( 'auth' => 'Authentication', 'track' => 'Tracking Settings', 'event' => 'Event Tracking', 'upgrade' => 'Upgrade to Pro' ); if(get_option('awca_auth_settings')){ $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.