How to Create a Simple WordPress Plugin

WordPress is great and most used open source CMS in web world.Its mostly use for blog system but you can create website and typical dynamic website also. its very easy to use and customized.Wordpress has rich plug-in pool but may be it will not fulfill your requirement, to solve this problem wordpress introduced plug-in management systems with use of this you can build their own custom plug-in to add new features.


WordPress Plugging allow easy modification, customization, and enhancement to a WordPress blog. Instead of changing the core programming of WordPress, you can add functionality with WordPress Plugging.
Word press 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.

You can also check other tutorial of wordpress,

Writing a wordpress plugin is not difficult task, its 2 steps work. The plugin has two parts:

  • The plugin header information
  • The code for the plugin

In this tutorial i am going to make a simple plugin which will show message on wordpress footer area.

Step 1: First will create 'wp-test-hello' folder under "wp-contentplugins" directory.

Step 2: Now we will create wp-test-hello.php file to write plugin functionality.

The Header Information

Each plugin main PHP files must have standard Plugin information header.Header information tells wordpress Plugin exists add it to the Plugin management screen so it can be activated, load it, and run its functions; without the header, your Plugin will never be activated and will never run.


The plugin code:

Now we will write below code in plugin main side and hooks with wp_footer area.