src/Codeception/Module/WPDb.php
public function grabOptionFromDatabase($option_name)
    {
        $table = $this->grabPrefixedTableNameFor('options');
        $option_value = $this->grabFromDatabase($table, 'option_value', ['option_name' => $option_name]);

        return empty($option_value) ? '' : $this->maybeUnserialize($option_value);
    }
public function grabOptionFromDatabase($option_name)
    {
        $table = $this->grabPrefixedTableNameFor('options');
        $option_value = $this->grabFromDatabase($table, 'option_value', ['option_name' => $option_name]);

        return empty($option_value) ? '' : $this->maybeUnserialize($option_value);
    }
public function grabOptionFromDatabase ( $ option_name ) { $ table = $ this -> grabPrefixedTableNameFor ( 'options' ) ; $ option_value = $ this -> grabFromDatabase ( $ table , 'option_value' , [ 'option_name' => $ option_name ] ) ; return empty ( $ option_value ) ? '' : $ this -> maybeUnserialize ( $ option_value ) ; }
Gets an option value from the database.

@example
```php
$count = $I->grabOptionFromDatabase('foo_count');
```

@param string $option_name The name of the option to grab from the database.

@return mixed|string The option value. If the value is serialized it will be unserialized.
Gets an option value from the database .