protected function ajax_url(){
        $url = admin_url('admin-ajax.php');
        if( is_ssl() ){
            $url = str_replace('http://', 'https://', $url);
        }else{
            $url = str_replace('https://', 'http://', $url);
        }
        return $url;
    }