src/Codeception/Module/WPDb.php
public function grabSiteOptionFromDatabase($key)
    {
        $currentBlogId = $this->blogId;
        $this->useMainBlog();
        $value = $this->grabOptionFromDatabase('_site_option_' . $key);
        $this->useBlog($currentBlogId);

        return $value;
    }
public function grabSiteOptionFromDatabase($key)
    {
        $currentBlogId = $this->blogId;
        $this->useMainBlog();
        $value = $this->grabOptionFromDatabase('_site_option_' . $key);
        $this->useBlog($currentBlogId);

        return $value;
    }
public function grabSiteOptionFromDatabase ( $ key ) { $ currentBlogId = $ this -> blogId ; $ this -> useMainBlog ( ) ; $ value = $ this -> grabOptionFromDatabase ( '_site_option_' . $ key ) ; $ this -> useBlog ( $ currentBlogId ) ; return $ value ; }
Gets a site option from the database.

@example
```php
$fooCountOptionId = $I->haveSiteOptionInDatabase('foo_count','23');
```

@param string $key The name of the option to read from the database.

@return mixed|string The value of the option stored in the database, if unserializable the value will be unserialized.
Gets a site option from the database .