Book List
A WordPress plugin demonstrating CRUD operations with a custom database table, REST API endpoints, shortcodes, pagination, search, and WordPress coding standards.
by Mainul Hassan Main · github.com/shamimmoeen/book-list · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/shamimmoeen/book-list/archive/refs/heads/master.zipDeclares an update source (https://github.com/shamimmoeen/book-list), so updates arrive through the plugin's own updater.
From the readme
Book List
A WordPress plugin to manage a list of books and their authors via shortcodes and a custom REST API.
Description
Book List is a portfolio/demo WordPress plugin that showcases best-practice plugin development techniques including:
- Custom database table creation on activation (wpbooks)
- CRUD operations via both a frontend UI and REST API
- Two shortcodes for adding and displaying books
- Custom REST API built with WPRESTController (OOP) under the namespace book-list/v1
- Search, pagination, and sorting on the book list
- WordPress object caching for improved performance
- Full security: nonce verification, capability checks, input sanitization, output escaping
- WordPress Coding Standards enforced via PHPCodeSniffer
Shortcodes
| Shortcode | Description |
|----------------|--------------------------------------------------|
| [bookform] | Displays a form to add a new book (requires pub