TitanFramework::getOption PHP Метод

getOption() публичный Метод

Get an option
С версии: 1.0
public getOption ( string $optionName, integer $postID = null ) : mixed
$optionName string The name of the option.
$postID integer The post ID if this is a meta option.
Результат mixed The option value
    public function getOption($optionName, $postID = null)
    {
        $value = false;
        // Get the option value.
        if (array_key_exists($optionName, $this->optionsUsed)) {
            $option = $this->optionsUsed[$optionName];
            $value = $option->getValue($postID);
        }
        return apply_filters('tf_get_option_' . $this->optionNamespace, $value, $optionName, $postID);
    }