https://github.com/haruncpi/api-plugin
An example WordPress plugin for WP API composer package
https://github.com/haruncpi/api-plugin
api wordpress wp-api
Last synced: 6 months ago
JSON representation
An example WordPress plugin for WP API composer package
- Host: GitHub
- URL: https://github.com/haruncpi/api-plugin
- Owner: haruncpi
- Created: 2023-08-12T05:38:21.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T06:06:40.000Z (about 2 years ago)
- Last Synced: 2025-01-14T04:25:39.959Z (about 1 year ago)
- Topics: api, wordpress, wp-api
- Language: PHP
- Homepage: https://github.com/haruncpi/wp-api
- Size: 4.88 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Example WordPress API Plugin
An example plugin for [haruncpi/wp-api](https://github.com/haruncpi/wp-api) composer package.
## Installation
1. Download the ZIP file from this repository by clicking [here](https://github.com/haruncpi/api-plugin/archive/refs/heads/master.zip). After downloading, extract the contents and rename the folder to `api-plugin`.
2. Place the `api-plugin` folder in the `wp-content > plugins` directory of your WordPress project.
3. Open a terminal or command prompt and navigate to the `api-plugin` folder. Run the command `composer install` to install the necessary dependencies.
4. Go to the "Plugins" list in the WordPress dashboard menu, and activate the plugin.
## API Base URL
wp-admin > settings > permalink
- When pretty permalink: `yourdomain.com/wp-json/api-plugin/v1`
- When plain permalink: `yourdomain.com?rest_route=/api-plugin/v1`