An example plugin for haruncpi/wp-api composer package.
- Download the ZIP file from this repository by clicking here. After downloading, extract the contents and rename the folder to
api-plugin. - Place the
api-pluginfolder in thewp-content > pluginsdirectory of your WordPress project. - Open a terminal or command prompt and navigate to the
api-pluginfolder. Run the commandcomposer installto install the necessary dependencies. - Go to the "Plugins" list in the WordPress dashboard menu, and activate the plugin.
wp-admin > settings > permalink
- When pretty permalink:
yourdomain.com/wp-json/api-plugin/v1 - When plain permalink:
yourdomain.com?rest_route=/api-plugin/v1