Create your First WordPress Plugin

 

 

Code of the plugin is

<?php
/*
Plugin Name: First Plugin
Plugin URI: http://agilesolutionspk.com/training
Description: It is just for thrill
Version: 1.0
Author URI: 
*/

add_action( 'admin_menu', 'my_admin_menu' );

function my_admin_menu(){
	 add_menu_page( 'First Plugin', 'First Plugin', 'manage_options', 'my_first_plugin', 'show_my_message');
}

function show_my_message(){
	echo "Hello World!";
}
?>