src/Codeception/Module/WPDb.php
public function grabSiteUrl($path = null)
    {
        $url = $this->config['url'];

        if ($path !== null) {
            return Utils::untrailslashit($this->config['url']) . DIRECTORY_SEPARATOR . Utils::unleadslashit($path);
        }

        return $url;
    }
public function grabSiteUrl($path = null)
    {
        $url = $this->config['url'];

        if ($path !== null) {
            return Utils::untrailslashit($this->config['url']) . DIRECTORY_SEPARATOR . Utils::unleadslashit($path);
        }

        return $url;
    }
public function grabSiteUrl ( $ path = null ) { $ url = $ this -> config [ 'url' ] ; if ( $ path !== null ) { return Utils :: untrailslashit ( $ this -> config [ 'url' ] ) . DIRECTORY_SEPARATOR . Utils :: unleadslashit ( $ path ) ; } return $ url ; }
Returns the current site URL as specified in the module configuration.

@example
```php
$shopPath = $I->grabSiteUrl('/shop');
```

@param string $path A path that should be appended to the site URL.

@return string The current site URL
Returns the current site URL as specified in the module configuration .