Its class name should start with the "Plugin_" followed by the plugin name, e.g. Plugin_skeleton. It generally should contain 2 functions:
- main
This should contain the main logic that is needed to make any changes before the page is generated. - output
This should be used to generate the actual page and should return the output for further processing. Note that this function is only called if the main function was executed successfully.
Plugin frontend class
PHP
class Plugin_skeleton extends Base_Plugin{
function main()
{
//...
}
function output()
{
//...
}
}