Skip to content

List of hooks

robiso edited this page Jan 3, 2018 · 15 revisions

List of hooks/listeners

  • Used for attaching your functions to WonderCMS
 wCMS::addListener('page', 'yourFunctionName');
 wCMS::addListener('js', 'yourFunctionName');
 wCMS::addListener('css', 'yourFunctionName');
 wCMS::addListener('settings', 'yourFunctionName');
 wCMS::addListener('menu', 'yourFunctionName');
 wCMS::addListener('getMenuSettings', 'yourFunctionName');
 wCMS::addListener('footer', 'yourFunctionName');

Check out this simple hits counter plugin to see how simple it is to create plugins!

Clone this wiki locally