Thursday, January 24, 2013

Wordpress - Creating a plugin

 Similar to my last post on creating wordpress templates, creating a plugin follows pretty much the same pattern of simplicity. So, lets just dive in. Here are the steps to do it.
  • Navigate to the plugins directory in your wordpress installation. [/wp-content/plugins/]
  • Create a new folder "my_plugin" in the directory
  • Create a new file "my_plugin.php" in the "my_plugin" directory
  • Type the below code in the file
        Plugin Name: my_plugin 
        Plugin URI:
        Description: Test Plugin
        Author: Pramod Rao
        Version: 1.0 
        Author URI:

That's all. By all means, change the content in the header.
Once this is done, if you refresh the plugins page in the admin panel in wordpress, you'll see the plugin listed below.

No comments :