Wednesday, December 31, 2014

Basic Rules of a plugin

You can access plugin menu from Admin > plugin option

You must be need manage_plugin capability

 

Plugin Folder :  portable/plugin/

Lets see a example plugin map

portable/plugin/example-folder/         (You must be set all file under a folder)

portable/plugin/example-folder/plug.php  (The cms load plug.php file , You need to create a plug.php file under the folder )

 

You can config plugin name , detail , author name from plug.php file

Sample plug.php

 
<?php
/*
Plugin Name : Test
Author : John Ex.
Detail : This is an example plugin
*/
//your php code here
?>

No comments:

Post a Comment