How to Create Simple WordPress Plugin?

How to Create Simple WordPress Plugin?

To create simple plugin in wordpress, Create a folder in <wordpressrootdirectory>/wp-content/plugins/

Create a folder of any name. for eg:Test

Inside test create a file name plugin.php and add following code.

<?php

/**Now go to settings/Plugin in backend

your plugin will be shown in the list of plugins just click on activate button to enable your plugin.

* Plugin Name: My Plugin Name

* Plugin URI: http://mypluginuri.com/

* Description: A brief description about your plugin.

* Version: 1.0 or whatever version of the plugin (pretty self explanatory)

* Author: Plugin Author’s Name

* Author URI: Author’s website

* License: A “Slug” license name e.g. GPL12

*/

/*Below add your code for performing plugin functionality*/

?>

Now go to settings/Plugin in backend.

Your plugin will be shown in the list of plugins just click on activate button to enable your plugin. Contact Nevpro Business Solutions for more information.

Follow us on Facebook.