A lightweight WordPress plugin built to learn and understand WordPress plugin development, with a focus on hooks, database handling, security, and admin dashboard customization.
This project was created as a hands-on learning exercise to explore core WordPress plugin concepts, including:
- WordPress plugin structure and lifecycle
- Using hooks and activation hooks
- Secure interaction with the WordPress database
- Building custom admin dashboard pages
The primary goal is clarity, correctness, and best practices, rather than production-level complexity.
- Custom Admin Menu Page in the WordPress dashboard
- Add and delete tasks using a simple, clean UI
- Secure form handling using nonces and input sanitization
- Custom MySQL table creation using
dbDelta - Clean and minimal plugin architecture following WordPress standards
- PHP
- WordPress
- MySQL
- WordPress Hooks &
$wpdb
simple-task-manager/
│── simple-task-manager.php
│── README.md
-
Install XAMPP / WAMP / LocalWP
-
Start Apache and MySQL
-
Download WordPress from https://wordpress.org
-
Extract WordPress into:
htdocs/wordpress -
Create a database named
wordpressusing phpMyAdmin -
Complete the WordPress installation via:
http://localhost/wordpress
-
Navigate to:
wp-content/plugins/ -
Create a folder named:
simple-task-manager -
Copy
simple-task-manager.phpinto this folder
-
Open WordPress Admin:
http://localhost/wordpress/wp-admin -
Go to Plugins → Installed Plugins
-
Activate WordPress Task Manager Plugin
- After activation, find Task Manager in the admin sidebar
- Add new tasks using the input field
- Delete tasks using the delete button
- All tasks are stored securely in the WordPress database
- Creates a custom database table on plugin activation
- Uses WordPress hooks to register admin menus
- Handles form submission securely using nonces
- Performs CRUD operations using
$wpdb - Follows WordPress coding standards and best practices
- Understood the WordPress plugin lifecycle
- Learned how activation hooks work
- Practiced secure CRUD operations
- Built admin pages using WordPress APIs
- Gained hands-on experience with PHP in WordPress
This plugin is intended for learning and practice purposes only and is not designed for production use.
Manas Kumar GitHub: https://github.com/rookiecoder910
This repository demonstrates:
- Intentional learning of WordPress development
- Understanding of WordPress internals
- Clean, readable, and well-structured PHP code