public function registerGlobalWPQuery()
    {
        $this->app->singleton('wpquery', function () {
            global $wp_query;

            return $wp_query;
        });

        $this->app->alias('wpquery', WP_Query::class);
    }
public function registerGlobalWPQuery()
    {
        $this->app->singleton('wpquery', function () {
            global $wp_query;

            return $wp_query;
        });

        $this->app->alias('wpquery', WP_Query::class);
    }
public function registerGlobalWPQuery ( ) { $ this -> app -> singleton ( 'wpquery' , function ( ) { global $ wp_query ; return $ wp_query ; } ) ; $ this -> app -> alias ( 'wpquery' , WP_Query :: class ) ; }
Register global WP_Query object.

@return void
Register global WP_Query object .