CalderaWP / searchwp-api-route

Adds an endpoint to the WordPress REST API for searching via SearchWP
33 stars 15 forks source link

update route.php #6

Open roryheaney opened 7 years ago

roryheaney commented 7 years ago

adds return X-WP-Total and X-WP-TotalPages to the returned endpoint

after the foreach at 152 /*--- Start Customization --*/ return $this->create_response( $request, $posts, $search->found_posts ); /*--- end Customization --*/

and before the ensuring that the engine exists `/**

daltonrooney commented 7 years ago

Thanks, this just saved my life! Hope it gets merged. 👍