Login   Register  
PHP Classes
elePHPant
Icontem

File: plugins/plugin2/plugin2.plugin.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Nemanja Avramovic  >  Simple Hooks Plugin  >  plugins/plugin2/plugin2.plugin.php  >  Download  
File: plugins/plugin2/plugin2.plugin.php
Role: Application script
Content type: text/plain
Description: Plugin in subfolder
Class: Simple Hooks Plugin
Setup and call application plug-in scripts
Author: By
Last change:
Date: 2008-04-06 10:49
Size: 377 bytes
 

Contents

Class file image Download
<?php

$plugin_id 
basename(__FILE__);

$data['name'] = "Second plugin";
$data['author'] = "Nemanja";
$data['url'] = "http://www.avramtar.com/";

function 
plg2() {
    echo 
'echoed from second plugin<br />';
}

function 
njeh() {
    echo 
"<p>from plugin 2... below!?</p>";
}

add_hook('test','plg2');
add_hook('test1','njeh');

echo 
"<p>Plugin 2 LOADED!</p>";
?>