public function handle_connect_existing_post() { if ($this->connect_existing_post()) { wp_send_json_success(); } wp_send_json_error($this->last_error); }