Easy Steps To Create a WordPress Plugin

By Prem Tiwari in Plugins, WordPress, WordPress Beginners. Updated on


Writing a Plugin

I have added this post because I got many requests. In this article i will describe the easy and simple steps to create the wordpress plugin. WordPress Plugins allow to easy modification, customization, and enhancement in a WordPress blog or website.

 

Standard Plugin Information

Add the header information in top of your Plugin’s main PHP file because WordPress recognize to getting the information for Plugin management screen so it can be activated and run its functions. Below is the plugin header format:

 Programming Your Plugin

write the code for your plugin functionalities after the header infomation. In this section describes about your plugin, how to accomplish several tasks your Plugin will do.

WordPress Plugin Hooks

example of add_action() hooks

do_action() hooks

Execute all functions on a specific action hook.

 Complete example for plugin

 

Sharing is caring!


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

You might also like:

Tags: , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.