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-plugin
folder in thewp-content > plugins
directory of your WordPress project. - Open a terminal or command prompt and navigate to the
api-plugin
folder. Run the commandcomposer install
to 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