-
Notifications
You must be signed in to change notification settings - Fork 0
License
vinay070403/books-plugin
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
<h1 align="center">📚 Books Plugin for WordPress</h1>
<p align="center">
A simple WordPress plugin to register a custom post type <code>book</code> with custom fields and a REST API endpoint.
</p>
---
## ✨ Features
- ✅ Custom Post Type: `book`
- 🔧 REST API: `/wp-json/books/v1/list`
- ✍️ Custom Fields: `Author`, `Publisher`
- 🧑💻 Admin UI for adding books
---
## ⚙️ Installation
1. Move `books-plugin.php` into a folder called `books-plugin`
2. Place the folder into `wp-content/plugins/`
3. Go to WordPress Admin → Plugins → Activate **Books Plugin**
4. Navigate to **Books → Add New** to add book data
5. Use **Custom Fields** for `Author` and `Publisher`
6. Test API: `http://localhost:{PORT}/wp-json/books/v1/list`
---
## 📸 Screenshots
### 📝 Add Book

### 🏷️ Custom Fields

### 🌐 REST API Output

---
## 📁 Folder Structure
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published