src/Route/Router.php
public function addWordPressBindings($route)
    {
        global $post, $wp_query;

        foreach (compact('post', 'wp_query') as $key => $value) {
            $route->setParameter($key, $value);
        }

        return $route;
    }
public function addWordPressBindings($route)
    {
        global $post, $wp_query;

        foreach (compact('post', 'wp_query') as $key => $value) {
            $route->setParameter($key, $value);
        }

        return $route;
    }
public function addWordPressBindings ( $ route ) { global $ post , $ wp_query ; foreach ( compact ( 'post' , 'wp_query' ) as $ key => $ value ) { $ route -> setParameter ( $ key , $ value ) ; } return $ route ; }
Add WordPress default parameters if WordPress route.

@param \Themosis\Route\Route $route

@return \Themosis\Route\Route
Add WordPress default parameters if WordPress route .