Apple_Actions\Index\Export::fetch_content_settings PHP Method

fetch_content_settings() private method

Loads settings for the Exporter_Content from the WordPress post metadata.
Since: 0.4.0
private fetch_content_settings ( ) : Settings
return Settings
    private function fetch_content_settings()
    {
        $settings = new Exporter_Content_Settings();
        foreach (get_post_meta($this->id) as $name => $value) {
            if (0 === strpos($name, 'apple_news_')) {
                $name = str_replace('apple_news_', '', $name);
                $value = $value[0];
                $settings->set($name, $value);
            }
        }
        return apply_filters('apple_news_content_settings', $settings);
    }