Hello World plugin for wordpress
Posted on 16th July 2007 by Taggy0
I have NEVER coded in php . But i have fallen for this wordpress . Its so very wonderful and iam hell bent on making a wordpress plugin . So i today i decided to try and learn them and trust me it takes not more than 15 min .
- Learn to put the initial documentation ,i know we hate to write comments but its a must to write them here .
<?php
/*
Plugin Name: Name Of The Plugin
Plugin URI: http://URI_Of_Page_Describing_Plugin_and_UpdatesDescription: A brief description of the plugin.
Version: The plugin's Version Number, e.g.: 1.0
Author: Name Of The Plugin Author
Author URI: http://URI_Of_The_Plugin_Author
*/
?>
- The next step is to create hooks.Hooks are the way to “go” in to wordpress .These are functions that you call for an action. for eg,a function every time a user posts .The complete listof hooks can be found at Wordpress API
- The next is to write down your function in your_plugin_page.php and activate it.Dont forget to make sure no other plugin function matches yours :-)
- Then activate the plugin from menu and use it by calling your_function_name(testparam); :-) .As simple as it gets . and what did i try . No points for Guessing .Look at the footer and you will find a hello world :-)
[tags]wordpress,plugin[/tags]


