Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/tajwar-t/wp-rest-data-manager/archive/refs/heads/main.zipREST-Based Admin Data Manager
Version: 1.0
Author: Tajwar
Requires: WordPress 6.0+
Tested up to: 6.5
License: GPLv2 or later
Description
REST-Based Admin Data Manager is a WordPress plugin that provides a modern admin interface to manage custom data items using React and WordPress REST API.
It allows administrators to create, read, update, and delete (CRUD) items from a custom database table without page reloads. This plugin demonstrates modern WordPress plugin development using REST API, AJAX, and React components.
Key Features:
- Add, edit, and delete custom data items via a React-powered admin panel
- Inline editing and modal-based forms for a professional SaaS-like experience
- Bulk delete functionality for efficient management
- Search and pagination for large datasets
- Toast notifications for success and error messages
- Fully integrated with WordPress admin styling using
@wordpress/components
This plugin is perfect for learning REST API integration, AJAX, React in WordPress admin, and creating professional plugin interfaces.
Installation
- Upload the
rest-admin-data-managerfolder to the/wp-content/plugins/directory. - Activate the plugin through the Plugins menu in WordPress.
- Go to the admin menu Data Manager to access the admin dashboard.
Usage
- Add a new item: Click the Add New Item button, fill in the Title and Status, then click Save.
- Edit an item: Click the Edit button on any row, modify the data in the modal, and save.
- Delete an item: Click the Delete button for a single item.
- Bulk delete: Select multiple items using checkboxes, then click Delete Selected.
- Search items: Use the search box to filter items by title.
- Pagination: Navigate through multiple pages using Prev/Next buttons.
REST API Endpoints
The plugin exposes the following REST API endpoints (authenticated users only):
| Method | Endpoint | Description |
|---|---|---|
| GET | /wp-json/dm/v1/items |
Fetch all items |
| POST | /wp-json/dm/v1/items |
Add a new item |
| PUT | /wp-json/dm/v1/items/{id} |
Update an item by ID |
| DELETE | /wp-json/dm/v1/items/{id} |
Delete an item by ID |
All endpoints require a valid WordPress nonce and manage_options capability.
Developer Notes
- Uses WordPress
@wordpress/componentsfor modals, buttons, inputs, and notifications. - All data operations are AJAX-based via
wp.apiFetch. - Ideal plugin for learning modern WordPress plugin development using React + REST API.
- Can be extended to manage other custom tables like orders, tasks, or transactions.
Changelog
1.0
- Initial release
- React-based admin table
- REST API CRUD endpoints
- Modals, search, pagination, and bulk actions
- Toast notifications
License
GPLv2 or later – see LICENSE file for details.
Screenshots
- React-powered admin table
- Modal for Add/Edit item
- Toast notifications and bulk actions