public function registerGlobalWP()
    {
        $this->app->singleton('wp', function () {
            global $wp;

            return $wp;
        });

        $this->app->alias('wp', WP::class);
    }
public function registerGlobalWP()
    {
        $this->app->singleton('wp', function () {
            global $wp;

            return $wp;
        });

        $this->app->alias('wp', WP::class);
    }
public function registerGlobalWP ( ) { $ this -> app -> singleton ( 'wp' , function ( ) { global $ wp ; return $ wp ; } ) ; $ this -> app -> alias ( 'wp' , WP :: class ) ; }
Register global WP object.

@return void
Register global WP object .