'POST', 'body' => $args, 'timeout' => 30, ) ); $this->response = new response( $ret ); return $this->response; } public function get( $url, $args ) { return $this->response = new response( wp_remote_get( $url, array( 'body' => $args ) ) ); } public function get_json() { return $this->response ? $this->response->get_json() : null; } public function get_headers() { return $this->response ? $this->response->get_headers() : null; } public function get_body() { return $this->response ? $this->response->get_body() : null; } }