12 lines
219 B
PHP
12 lines
219 B
PHP
|
<?
|
||
|
class Plugin_Example extends Plugin {
|
||
|
function initialize() {
|
||
|
$this->add_listener('article_before');
|
||
|
}
|
||
|
|
||
|
function article_before(&$line) {
|
||
|
$line["title"] = "EXAMPLE/REPLACED:" . $line["title"];
|
||
|
}
|
||
|
}
|
||
|
?>
|