A RESTful task management API plugin for WordPress with a clean Laravel-inspired architecture.
wp-task-manager/
├── wp-task-manager.php # Bootstrap
├── uninstall.php # Uninstall handler
├── README.md
├── app/
│ ├── Controllers/ # HTTP request/response handlers
│ ├── Models/ # Database queries
│ ├── Services/ # Business logic layer
│ ├── Database/ # Schema & migrations
│ └── Admin/ # WordPress admin UI
└── resources/
└── admin/ # Admin page templates
Base URL: /wp-json/wp-task-manager/v1/tasks
| Method | Endpoint | Description |
|---|---|---|
GET |
/tasks |
List all tasks (paginated, filterable) |
POST |
/tasks |
Create a new task |
PUT |
/tasks/{id} |
Update task status (pending/done) |
DELETE |
/tasks/{id} |
Delete a task |
| Param | Type | Default | Description |
|---|---|---|---|
status |
string | — | Filter: pending or done |
page |
int | 1 | Page number |
limit |
int | 20 | Results per page (max 100) |
order |
string | DESC | Sort order: ASC or DESC |
curl -X POST http://localhost/wordpress/wp-json/wp-task-manager/v1/tasks \
-H "Content-Type: application/json" \
-d '{"title": "Build something great"}'Go to WP Admin → Task Manager for a full CRUD interface.
On activation, the plugin creates the wp_task_manager_tasks table automatically. On uninstall, the table is dropped.
- WordPress 5.0+
- PHP 7.4+