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

How to Create a WordPress Plugin

Last updated on by
Follow WPBeginner on YouTube
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 lovers 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 »
  • suresh

    It’s Good Article and it’s much simple

  • http://www.appsopinion.com/ Shrini

    Good article to learn WP plugin development…

  • JasonCrews

    WordPressmodder is a viagra site now

  • rakeshtiwary022

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

    please give me plugin tutorials and help to create plugin

    email:-rakeshtiwary022@gmail.com

  • HomeTivi

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

    please give me plugin tutorials and help to create plugin

  • MannuSingh

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

    please give me plugin tutorials and help to create plugin

  • BanksBen

    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 http://www.moverscommunity.com/ and http://tsveetech.com

  • http://www.bageshsingh.com Bagesh Singh

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

  • http://www.wificerts.com/ Nigel

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

  • http://www.tips-triks-php.com Dadang Iskandar

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

  • http://www.ex500series.com John Franklin

    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!

  • http://www.kiararealty.com.my Kent Tan

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

    • http://www.wpbeginner.com Editorial Staff

      Buy one of the plugin books… Study the Codex, and the Trunk.

  • http://www.mttamborineaccommodation.com.au/ Brad

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

  • http://www.18five.com Rosti The Snowman

    I think this list will be really helpful

    thanks

    I also agree you should change the title :D

  • http://www.timtrice.com Tim Trice

    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.

  • http://catn.com Joe

    +1 change title :)

  • Marco

    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”. ;-)

  • http://webylife.com Nikunj Tamboli

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