$istags = maybe_serialize($istagspp_add_rem);
     $this->SaveOption('istagspp_add_rem', $istags);
     $istags = maybe_serialize($istagspp_remove_app);
     $this->SaveOption('istagspp_remove_app', $istags);
     $istags = maybe_serialize($istagspp_remove_rem);
     $this->SaveOption('istagspp_remove_rem', $istags);
     echo "<div class='updated fade'>" . __('<p>Pay Per Post tag settings updated.</p>', 'wishlist-member') . "</div>";
 }
 $isthankyou_url = $wpm_scregister . $isthankyou;
 $isapikey = $this->GetOption('isapikey');
 $ismachine = $this->GetOption('ismachine');
 $isTagsCategory = array();
 $isTags = array();
 if (class_exists('WLM_INTEGRATION_INFUSIONSOFT_INIT')) {
     if ($isapikey && $ismachine) {
         $WLM_INTEGRATION_INFUSIONSOFT_INIT = new WLM_INTEGRATION_INFUSIONSOFT_INIT();
         $isTagsCategory = $WLM_INTEGRATION_INFUSIONSOFT_INIT->getTagsCategory($this, $ismachine, $isapikey);
         $isTagsCategory[0] = "- No Category -";
         asort($isTagsCategory);
         $isTags = $WLM_INTEGRATION_INFUSIONSOFT_INIT->getTags($this, $ismachine, $isapikey);
     }
 }
 $tag_placeholder = count($isTags) > 0 ? "Select tags..." : "No tags available";
 $istags_add_app = $this->GetOption('istags_add_app');
 if ($istags_add_app) {
     $istags_add_app = maybe_unserialize($istags_add_app);
 } else {
     $istags_add_app = array();
 }
 $istags_add_rem = $this->GetOption('istags_add_rem');
 if ($istags_add_rem) {
                    } elseif ($data['action'] == 'remove') {
                        $res = $this->RemoveUserTagsHook($data['uid'], $data['levels']);
                    } elseif ($data['action'] == 'cancel') {
                        $res = $this->CancelUserTagsHook($data['uid'], $data['levels']);
                    }
                    if (isset($res['errstr'])) {
                        $res['error'] = strip_tags($res['errstr']);
                        $res['error'] = str_replace(array("\n", "\t", "\r"), '', $res['error']);
                        $d = array('notes' => "{$res['errno']}:{$res['error']}", 'tries' => $queue->tries + 1);
                        $WishlistAPIQueueInstance->update_queue($queue->ID, $d);
                        $error = true;
                    } else {
                        $WishlistAPIQueueInstance->delete_queue($queue->ID);
                        $error = false;
                    }
                }
                //save the last processing time when error has occured on last transaction
                if ($error) {
                    $current_time = time();
                    if ($last_process) {
                        update_option("WLM_InfusionsoftSCAPI_LastProcess", $current_time);
                    } else {
                        add_option("WLM_InfusionsoftSCAPI_LastProcess", $current_time);
                    }
                }
            }
        }
    }
}
$sc = new WLM_INTEGRATION_INFUSIONSOFT_INIT();
$sc->load_hooks();