Creating Your First WordPress Plugin — a practical guide to create WordPress plugin with clear examples you can reuse in real projects.
WordPress Plugin Development Series (4/95). Prefer one article? Read the complete WordPress plugin development tutorial.
Short description
Put a PHP file with a valid plugin header inside `wp-content/plugins/your-plugin/`, then activate it in Plugins.
Steps
- Create
wp-content/plugins/hello-plugin/. - Add a main PHP file with a plugin header.
- Activate it in wp-admin → Plugins.
hello-plugin.php
<?php
/**
* Plugin Name: Hello Plugin
* Description: My first WordPress plugin.
* Version: 1.0.0
* Author: Imtiyaj
*/
add_action('init', function () {
// Plugin loaded.
});