Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
WordPress Plugins
View all Guides

How to Create a WordPress Plugin

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
How to Create a WordPress Plugin

WordPress is the most popular open source blog system. Due to it ease of use and extensibility, it is almost de facto of blog industry standard. With their plugin management module, developers are free to build their own custom plugin to add new features. Some examples are page specific SEO features, photo gallery, spam combating and more.

Writing your own WordPress plugin is not that difficult if you are a web developer with basic PHP skills. The only thing you will need, coupled with your PHP skills, is some direction, some resources, a little information on how WordPress expects your plugin to behave, and most importantly a great idea.

A plugin is a simple program, a set of functions, that adds a specific set of features and services that can be executed in different sections of your WordPress site.

Today, I have compiled a list of the best tutorials to help you create your own plugin(s).

Writing a Plugin – WordPress Codex

Writing a Plugin - WordPress Codex

The best way to learn anything new is to start at the source. Here you can start by learning the basics in WordPress official site. This plugin overview guide takes you through the initial stages of plugin development, from naming your plugin, creating the plugins first PHP file, setting up a unique directory for a multi-file plugin (if you choose to use CSS, Javascript), using and understanding WP hooks and template tags, creating option pages and saving plugin data to the database.

Anatomy of a WordPress Plugin

Anatomy of a WordPress Plugin

This tutorial from Nettuts covers pretty much the same information as the official WordPress site, but it is more illustrated and easy to follow. It explains the concept of how to build your widgets, and how to write your widgets admin panel. It is a must read for a new developer.

How to write a WordPress Plugin ?

How to write a WordPress Plugin

A rather basic tutorial that teach you to setup your own plugin, not bad to get your first hands on.

Create a Custom WordPress Plugin From Scratch

Create a Custom WordPress Plugin from Scratch

This tutorial will describe the implementation of a WordPress plugin starting from scratch. The plugin will connect to an external OSCommerce database and display random products on your WordPress site.

WordPress Plugin Tutorial – Hello World

In this tutorial, you will go over how to make a simple Hello World plugin.

How to Make a Social Bookmarking WordPress Plugin – Step by Step

Work on a more real life applicable plugins, learn how to develop your bookmark plugin one step at a time. This tutorial will teach you another level of knowledge with creating plugins and accessing API features of the social network system, not to forget admin panel, conditional tags and WordPress hooks.

WP Tutorial: Your First WP Plugin

This is a video tutorial in which you will learn how to create your first WordPress plugin.

A Crash-Course in WordPress Plugin Development

A Crash-Course in WordPress Plugin Development

This is a screencast tutorial from nettuts showing how to create a WordPress plugin from scratch that allows a blog editor to easily format articles.

Building a Plugin – It’s Easier Than You Think (Video)

This video tutorial demonstrates the basics of constructing a plugin, designing it to make the changes you want, and then using that plugin to alter your WordPress site in a persistent way.

First WP Plugin in 20 Lines

First WP Plugin in 20 Lines

This tutorial is for newbie plugin developers, it doesn’t explain how to use WP nor how to code PHP. What it does do is create a plugin in only 20 lines, which is pretty cool.

Building a WordPress Plugin

This easy to read tutorial takes you through the full process, of developing a plugin.

Developing WordPress Plugins – Slides

Developing WordPress Plugins - Slides

If you have any questions or suggestions about this article feel free to post a comment below.

Ryan TurkiRyan is a 17 Years old Web Developer/Designer. He’s interested in every thing around the Web especially web development and designing. He loves using jQuery, HTML, PHP, MYSQL, CSS, and AJAX. You can follow him on Twitter @TurRyan.

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »


  1. Siva says:

    Hi i am php and wordpress developer, so i want to create custom wordpress plugin

    please give me plugin tutorials and help to create plugin.

  2. ramesh ram says:

    hi,i’m php developer and wordpress developer.i would like to create custom wordpress plugin.please send tutorials.

  3. Marcy says:

    I’m a virgin programer, but have decided to create my own plug in for a fund raiser thermometer for my adoption blog because none of the ones I’ve found are comparable with my WP version and have what I want on them… and needless to say, I need help, direction, tips, something similar to what I need that I can tweek… etc. Please help ! :) thanks

  4. suresh says:

    It’s Good Article and it’s much simple

  5. Shrini says:

    Good article to learn WP plugin development…

  6. JasonCrews says:

    WordPressmodder is a viagra site now

  7. rakeshtiwary022 says:

    hi am php and wordpress developer, so i want to create custom wordpress plugin

    please give me plugin tutorials and help to create plugin

  8. HomeTivi says:

    hi am php and wordpress developer, so i want to create custom wordpress plugin

    please give me plugin tutorials and help to create plugin

  9. MannuSingh says:

    hi am php and wordpress developer, so i want to create custom wordpress plugin

    please give me plugin tutorials and help to create plugin

  10. BanksBen says:

    I have a limited knowledge of php . I am integrating my old site in to my new wp site my old site is a PHP SQL driven system that collects leads and stores them.My site is and

  11. Bagesh Singh says:

    I am a programmer. From last two days I am trying to create custom plugin and it’s help me better thanks a lot.

  12. Nigel says:

    Thanks for this great collection of articles. I can’t wait to get started hacking together my own plugin :)

  13. Dadang Iskandar says:

    I am very grateful to find this article because I’m learning php programming. very nice brother

  14. John Franklin says:

    Very nice, I’m a huge fan of WordPress and it’s great to see new really useful plugins getting released. I’ll download and check it out, looks exactly like what I have been looking for for weeks. So, thanks alot!

  15. Kent Tan says:

    Nice collection of tutorials. Where can I get the more advanced stuff – e.g. creating an options page to configure the plugin etc?

  16. Brad says:

    Thanks for the article, have always wanted to know a little more about making plugins so now I will give it a try!

  17. Rosti The Snowman says:

    I think this list will be really helpful


    I also agree you should change the title :D

  18. Tim Trice says:

    Two of the first four cover the same function of echoing “Hello World” (the first, at least, let’s you customize the echo statement). I’d like to see some more articles focused on plugin standards, deactivation hooks and removing data from the DB as well as exports.

  19. Joe says:

    +1 change title :)

  20. Marco says:

    Well, I suggest to change the title from “How to Create a WordPress Plugin” to “A list of the best tutorials to help you create your own WordPress Plugin”. ;-)

  21. Nikunj Tamboli says:

    Nice article will try to create couple of plugin using the article here

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.