From d02e81764e53ad2ca9ebb71cd4045784b621576b Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 1 Aug 2019 12:03:26 -0400 Subject: [PATCH] retrieve params through get in POI route --- setup/routes/pointsOfInterest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/routes/pointsOfInterest.php b/setup/routes/pointsOfInterest.php index 1beaa03..0448f54 100644 --- a/setup/routes/pointsOfInterest.php +++ b/setup/routes/pointsOfInterest.php @@ -60,7 +60,7 @@ class GLMA_POI_Rest_Controller 'methods' => WP_REST_Server::READABLE, 'callback' => function( $request ) { - + $this->params = $request->get_params(); $latMin = $this->params['latMin']; $lastLatMin = $this->params['lastLatMin']; $latMax = $this->params['latMax']; -- 2.17.1