Page 1 of 1

WonderCMS 3.0.0

Posted: Wed Jul 10, 2019 4:56 pm
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

<?php
global $Wcms;

function addcss($args) {

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

$Wcms->addListener('css', 'addcss');

Re: WonderCMS 3.0.0

Posted: Thu Jul 11, 2019 5:25 am
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).