TitanFramework::getOption PHP Method

getOption() public method

Get an option
Since: 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.
return 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);
    }