TitanFramework::removeChildThemeOptions PHP Method

removeChildThemeOptions() public method

Hook to the tf_create_option_continue filter, to check whether or not to continue adding an option (if the option id was used in $titan->removeOption).
Since: 1.2.1
public removeChildThemeOptions ( boolean $continueCreating, array $optionSettings ) : boolean
$continueCreating boolean If true, the option will be created.
$optionSettings array The settings for the option to be created.
return boolean If true, continue with creating the option. False to stop it..
    public function removeChildThemeOptions($continueCreating, $optionSettings)
    {
        if (!count($this->optionsToRemove)) {
            return $continueCreating;
        }
        if (empty($optionSettings['id'])) {
            return $continueCreating;
        }
        if (in_array($optionSettings['id'], $this->optionsToRemove)) {
            return false;
        }
        return $continueCreating;
    }