- Wordpress installed.
- Clone or download this repository.
git clone https://github.com/jovanidash21/wp-rest-api-extension-plugin.git
- Go to admin area and select Plugins -> Add New -> Upload and browse for the plugin file or upload the plugin file to
/wp-content/plugins/
directory. - Install and then activate the plugin.
- Go to Settings -> WP REST API Extension to configure the settings of the plugin.
- Add
/wp-json/wp/v2/menus/<menu-location>
route. - Add
next_post
andprev_post
field on API route of a post type item.
Licensed under GNU General Public License v3.0.