TitanFramework::setOption PHP Метод

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

Sets an option
С версии: 1.0
public setOption ( string $optionName, mixed $value, integer $postID = null ) : boolean
$optionName string The name of the option to save.
$value mixed The value of the option.
$postID integer The ID of the parent post if this is a meta box option.
Результат boolean Always returns true
    public function setOption($optionName, $value, $postID = null)
    {
        // Get the option value.
        if (array_key_exists($optionName, $this->optionsUsed)) {
            $option = $this->optionsUsed[$optionName];
            $option->setValue($value, $postID);
        }
        do_action('tf_set_option_' . $this->optionNamespace, $optionName, $value, $postID);
        return true;
    }