I am going to teach you to make a wordpress plugin in 5 easy steps

1.To make a wordpress plugin you first need to write some information under /**/ comment  like

/*

Plugin Name: Custom Upload

Plugin URI:

Description: Category-wise upload files

Version: 1.0

Author: Sandipan

Author URI: http://www.sandipan4uonly@gmail.com

*/

2. Now you need to write a function which fulfill your  requirement  like

Function demo(){

//your codes goes here

Echo “hello World”;

}

3. To assign the plugin into the menu you need to write another wordpress function like

function admin_menu_add_1()
{

add_options_page(“Demo”, “demo”, 1, “demo”, “demo”);

}

4. But it is still not ready yet , to activate this function you need to write another  wordpress  function like

add_action(‘admin_menu’, ‘admin_menu_add_1′);

Now you can see demo menu is add under ‘settings’  menu in

wp-admin (wordpress admin section).

5. Now activate this plugin & enjoy………

It is now ready to use

Latest posts by Sandipan Bhattacharjee

  • Share/Bookmark