Habari\Options::delete_group PHP Method

delete_group() public static method

Options::delete_group( 'foo' ); would delete all foo__* option names
public static delete_group ( string $prefix )
$prefix string The prefix to delete
    public static function delete_group($prefix)
    {
        if (substr($prefix, -2) != '__') {
            $prefix .= '__';
        }
        foreach (array_keys(self::instance()->options) as $key) {
            if (strpos($key, $prefix) === 0) {
                Options::delete($key);
            }
        }
    }