Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to Create a WordPress Plugin?

If you want to customise or need to add an extra functionality for your website, you can do this by changing the core of the Wordpress, however, if WordPress gets updated your changes will be ineffective. So, to get rid of this problem WordPress introduced modular architecture in which if ones need to extra functionality he can add PHP module called plugins and these plugins are written in PHP . In addition, HTML, JavaScript, JavaQuery and AJAX can also be incorporated to add more functionality , but in this article I will only use an echo command to print a single sentence in  PHP, this plugin will be very simple but at the end you will be able to create your own plugin.
First of all WordPress plugin is a PHP file and this need plugin header in PHP comment which is

/*Plugin Name: Simple Plugin
Plugin URI:
Description: This is demonstration for simple plugin
Version: 0.1.0
Author: Bindeshwar Kushwaha
Author URI:
Text Domain: simple-plugin
Domain Path:  /languages
echo "This is a Simple  Plugin";

Save above above code in a simple-plugin.php file and compress the file in the .zip format and this is your plugin. Upload in WordPress if there is no error then you have made it, this is the simplest plugin one can make it, you can say that an empty file.

Conclusion- In this article, i have demonstrated that how a very simple  plugin can be built for WordPress hope it will help to start your plugin writing . You can add more PHP code and see the results.

This post first appeared on INTERNET MARKETING AND BLOGGING, please read the originial post: here

Share the post

How to Create a WordPress Plugin?


Subscribe to Internet Marketing And Blogging

Get updates delivered right to your inbox!

Thank you for your subscription