public function register()
    {
        if ($this->hasShortcodes()) {
            foreach ($this->shortcodes as $shortcode => $methodName) {
                if (method_exists($this->controller, $methodName)) {
                    add_shortcode($this->formatCode($shortcode), array($this->controller, $methodName));
                }
            }
        }
    }
public function register()
    {
        if ($this->hasShortcodes()) {
            foreach ($this->shortcodes as $shortcode => $methodName) {
                if (method_exists($this->controller, $methodName)) {
                    add_shortcode($this->formatCode($shortcode), array($this->controller, $methodName));
                }
            }
        }
    }
public function register ( ) { if ( $ this -> hasShortcodes ( ) ) { foreach ( $ this -> shortcodes as $ shortcode => $ methodName ) { if ( method_exists ( $ this -> controller , $ methodName ) ) { add_shortcode ( $ this -> formatCode ( $ shortcode ) , array ( $ this -> controller , $ methodName ) ) ; } } } }
Registers dynamic shortcode hooks to the instantiated controller.
Note that these are not available when this instance of the controller
is not being loaded.
@return  null
Registers dynamic shortcode hooks to the instantiated controller . Note that these are not available when this instance of the controller is not being loaded .