VaultPress::get_config PHP Method

get_config() public method

public get_config ( $key )
    function get_config($key)
    {
        $val = get_option($key);
        if ($val) {
            return $val;
        }
        switch ($key) {
            case '_vp_config_option_name_ignore':
                $val = $this->get_option_name_ignore(true);
                update_option('_vp_config_option_name_ignore', $val);
                break;
            case '_vp_config_post_meta_name_ignore':
                $val = $this->get_post_meta_name_ignore(true);
                update_option('_vp_config_post_meta_name_ignore', $val);
                break;
            case '_vp_config_should_ignore_files':
                $val = $this->get_should_ignore_files(true);
                update_option('_vp_config_should_ignore_files', $val);
                break;
        }
        return $val;
    }
VaultPress