Click here for EduSec Demo EduSec Screenshots

Wordpress Plugin Development

On 2013-06-10 - By Ravi Thanki

WordPress Plugin: A WordPress Plugin is a program, or a set of one or more functions, written in the PHP scripting language, that adds a specific set of features or services to the WordPress weblog, which can be seamlessly integrated with the weblog using access points and methods provided by the WordPress.

1. Create one page name as admin.
2. create one menu name as admin.
3. create one folder in wordpress/wp-content/plugins.

here i have create folder name as ravi.

4. In which create one file .php.

here i have create file name as ravi.php.

5. Plugin Code:

Plugin Name: My First plugin
Plugin URI:
Description : My First Plugin “Hello Word”
Author : Ravi Thanki
Version : 1.0
Author URI:
//This action is used to add extra submenus and menu options to the admin panel’s menu structure.
It runs after the basic admin panel menu structure is in place.
where ‘ravi_admin_actions’ is the name of the function to be called.

function ravi_admin_actions(){


Display in Title Bar.
‘Ravi’ -> Display in Setting Menu.
‘manage_option’->Allows access to Administration Panel options.
‘ravi_admin’->function to be called.
_File_->Gets the path to a plugin file or directory.

function ravi_admin(){

Hello Word


SELECT id,post
FROM posts
WHERE status = ‘draft’


foreach($data as $value)
echo $value->id;
echo “
echo $value->post;
echo “