TitanFramework::getOptions PHP Method

getOptions() public method

Gets a set of options. Pass an associative array containing the option names as keys and the values you want to be retained if the option names are not implemented.
Since: 1.9
public getOptions ( array $optionArray, integer $postID = null ) : array
$optionArray array An associative array containing option names as keys.
$postID integer The post ID if this is a meta option.
return array An array containing the values saved.
    public function getOptions($optionArray, $postID = null)
    {
        foreach ($optionArray as $optionName => $originalValue) {
            if (array_key_exists($optionName, $this->optionsUsed)) {
                $optionArray[$optionName] = $this->getOption($optionName, $postID);
            }
        }
        return apply_filters('tf_get_options_' . $this->optionNamespace, $optionArray, $postID);
    }