/** * Register shortcodes */ public function onInit() { //add listeners to our shortcodes foreach ($this->getCompatibleShortcodes() as $shortcode) { ctShortcode::connectInlineAttributeFilter($shortcode, array($this, 'addCustomAttributes')); ctShortcode::connectNormalizedAttributesFilter($shortcode, array($this, 'addCustomNormalizedAttributes')); } }