WonderCMS 3.0.0

Welcome to the WonderCMS community. Anything goes, except for support requests.
Post Reply
User avatar
Posts: 37
Joined: Fri Jul 05, 2019 8:51 pm

WonderCMS 3.0.0

Post by StephanStanisic »

Hey all,

How would I go and use the new WonderCMS 3.0.0 addListener?

Is the following according to spec?

Code: Select all

global $Wcms;

function addcss($args) {

    $args[0] .= "Nice!";
    return $args;

$Wcms->addListener('css', 'addcss');
User avatar
Posts: 749
Joined: Sat Oct 30, 2010 12:23 am

Re: WonderCMS 3.0.0

Post by wiz »

On quick glance seems ok.

We've already ported most of the 2.7.0 plugins to 3.0.0 here:
https://github.com/robiso/wondercms-plu ... .0-plugins (if you need something to compare with).
Post Reply