Pages

Tuesday, January 22, 2013

How to create a plugin in wordpress?

For creating a new plugin in wordpress need to follow below steps:

1. Create a php file in plugins folder of your wordpress project.

For example : mytestplugin.php

2. Add the below code in that:
 <?php
/*
Plugin Name: My Test Plugin
Plugin URI: http://google.com
Description: This is a my first plugin
Version: 1.0
Author: Kiran
Author URI: http://gmail.com/
*/
?>
Plugin Name: name of the plugin which display at admin side of wordpress in plugins menu.
Plugin URL: describes the link of your plugin site.
Description: description of the plugin.
Version: version of the plugin
Author: Name of the author who creates the plugin
Authod URL: url of the author's site.


No comments:

Post a Comment