Wordpress Plugin Development
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: http://ravithanki.wordpress.com
Description : My First Plugin “Hello Word”
Author : Ravi Thanki
Version : 1.0
//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.
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.
WHERE status = ‘draft’
foreach($data as $value)