protected function registerWordpressAction()
    {
        if (function_exists('add_action')) {
            if (Router::isAjax() || is_admin()) {
                add_action('init', array($this, "onWordpressEarlyInit"));
            } else {
                add_action('wp', array($this, "onWordpressInit"), 10);
            }
        }

        $this->registered = true;
    }
protected function registerWordpressAction()
    {
        if (function_exists('add_action')) {
            if (Router::isAjax() || is_admin()) {
                add_action('init', array($this, "onWordpressEarlyInit"));
            } else {
                add_action('wp', array($this, "onWordpressInit"), 10);
            }
        }

        $this->registered = true;
    }
protected function registerWordpressAction ( ) { if ( function_exists ( 'add_action' ) ) { if ( Router :: isAjax ( ) || is_admin ( ) ) { add_action ( 'init' , array ( $ this , "onWordpressEarlyInit" ) ) ; } else { add_action ( 'wp' , array ( $ this , "onWordpressInit" ) , 10 ) ; } } $ this -> registered = true ; }
Registers the Wordpress action required to
handle the routing at the correct timing.
Registers the Wordpress action required to handle the routing at the correct timing .