private function publishPassAction()
 {
     $PASS_ID = $_GET['id'];
     $STATUS = $_GET['status'];
     $client = new ClientApi(PASSBUILDER_PUBLISHPASS_URL . '/' . $STATUS);
     $client->setData(array('coupon_id' => $PASS_ID));
     $client->crudAction('update');
     $updateResponse = $client->getResponse();
     unset($client);
     wp_redirect('?pass-builder=templates');
     exit;
 }
 private function removePassAction()
 {
     $request = new Request();
     $submitedValues = $request->all();
     if (array_key_exists('del', $submitedValues)) {
         $delPassArray = $submitedValues['del'];
         $client = new ClientApi(PASSBUILDER_REMOVEPASS_URL);
         $client->setData(array('del_ids' => $delPassArray));
         $client->crudAction();
         $removeResponse = $client->getResponse();
         unset($client);
         wp_redirect('?pass-builder=templates');
         exit;
     } else {
         wp_redirect('?pass-builder=templates');
         exit;
     }
 }