Login   Register  
PHP Classes
elePHPant
Icontem

File: plugins/plugin3.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/plugin3.php  >  Download  
File: plugins/plugin3.php
Role: Application script
Content type: text/plain
Description: Plugin with bad file name
Class: Simple Hooks Plugin
Setup and call application plug-in scripts
Author: By
Last change:
Date: 6 years ago
Size: 473 bytes
 

Contents

Class file image Download
<?php

//this plugin will never be loaded because it has no valid file name (*.plugin.php)

$plugin_id basename(__FILE__);

$data['name'] = "Third plugin";
$data['author'] = "Nemanja Avramovic";
$data['url'] = "http://www.avramovic.info/";

function 
plg3() {
    echo 
'echoed from third plugin<br />';
}

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

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

echo 
"Plugin 3 LOADED!<br />";
?>