src/FlexPress/Components/Shortcode/Helper.php
public function registerShortcodes()
    {

        if (!function_exists('add_shortcode')) {
            return;
        }

        $this->shortcodes->rewind();
        while ($this->shortcodes->valid()) {

            $shortcode = $this->shortcodes->current();
            add_shortcode($shortcode->getName(), array($shortcode, 'getCallback'));
            $this->shortcodes->next();

        }

    }
public function registerShortcodes()
    {

        if (!function_exists('add_shortcode')) {
            return;
        }

        $this->shortcodes->rewind();
        while ($this->shortcodes->valid()) {

            $shortcode = $this->shortcodes->current();
            add_shortcode($shortcode->getName(), array($shortcode, 'getCallback'));
            $this->shortcodes->next();

        }

    }
public function registerShortcodes ( ) { if ( ! function_exists ( 'add_shortcode' ) ) { return ; } $ this -> shortcodes -> rewind ( ) ; while ( $ this -> shortcodes -> valid ( ) ) { $ shortcode = $ this -> shortcodes -> current ( ) ; add_shortcode ( $ shortcode -> getName ( ) , array ( $ shortcode , 'getCallback' ) ) ; $ this -> shortcodes -> next ( ) ; } }
Registers all shortcodes added
@author Tim Perry
Registers all shortcodes added