Falcon_Connector_WordPress::get_default_settings PHP Метод

get_default_settings() защищенный Метод

Get default notification settings
protected get_default_settings ( ) : array
Результат array Map of type => pref value
    protected function get_default_settings()
    {
        $keys = array('post' => 'all', 'comment' => 'all');
        $defaults = array();
        foreach ($keys as $key => $hardcoded_default) {
            $option_key = $this->key_for_setting('notifications.' . $key);
            $value = Falcon::get_option($option_key, null);
            $defaults[$key] = isset($value) ? $value : $hardcoded_default;
        }
        return $defaults;
    }