Skip to content
Herby Design

How to make a WordPress Plugin

A beginner introduction to creating a WordPress plugin, with a PHP plugin header and a basic admin menu example. Add setup, explanation, testing and safety steps to make the guide more complete.

H Hernan MalubayWeb Developer 1 min read Updated Dec 2, 2026 Share
Beginner guide to creating a WordPress plugin with PHP

admin.png

This is for the beginners who wants to make a wordpress plugin.

First Step :

To add a plugin name and other details

<?php
/*
Plugin Name: Herby Design
Plugin URI: http://www.herbydesign.com
Description: Hernan Malubay a freelance web developer
Version: 1
Author: Hernan Malubay
Author URI: http://www.herbydesign.com
*/
Second Step :
function helloworld() {
include(‘show.php’);
}

function herbyfunction() {
add_options_page(“HerbyDesign”, “HerbyDesign”, 1, “HerbyDesign”, “helloworld”);
}

add_action(‘admin_menu’, ‘herbyfunction’);
?>

Download Plugin



For more details please don’t hesitate to contact me .

Found this helpful? Share it

How to make a WordPress Plugin — a beginner introduction to creating a WordPress plugin, with a PHP plugin header and a basic admin menu example. Add set…#WordPress #Plugins #WordPressTutorials #HerbyDesign

Tags: #WordPress #Plugins

Need help with your website?

I build fast, SEO-ready websites and web applications.

Discuss your project
Technology News 6 min read

WordPress Update: Install 7.1.5, Test 7.2 RC3 Safely

WordPress 7.1.5 is the security update to prioritize, while 7.2 RC3 belongs on a staging site. Follow these steps to test safely and plan your upgrade.

Read article
Technology News 7 min read

WordPress 7.2 RC3: How to Test It Safely

WordPress 7.2 RC3 is for testing, not live sites. Learn how to check compatibility safely and prepare for the planned stable release.

Read article
Technology News 6 min read

WordPress Security Update: Install 7.1.5 Safely

WordPress 7.1.5 fixes multiple security issues. Learn how to back up, update your site, test key features, and keep 7.2 release candidates off production.

Read article