function ajax_get_url_preview() { $this->verify_ajax_request(); $url = $this->get_url_preview(); $out = array('success' => '1', 'url' => $url); $this->end_ajax($out); }