private function _content_default_get()
{
$content = array();
// find out what content is in our default json file.
$available_content = $this->_get_json('default.json');
foreach ($available_content as $post_type => $post_data) {
if (count($post_data)) {
$first = current($post_data);
$post_type_title = !empty($first['type_title']) ? $first['type_title'] : ucwords($post_type) . 's';
if ($post_type_title == 'Navigation Menu Items') {
$post_type_title = 'Navigation';
}
$content[$post_type] = array('title' => $post_type_title, 'description' => sprintf(esc_html__('This will create default %s as seen in the demo.'), $post_type_title), 'pending' => esc_html__('Pending.'), 'installing' => esc_html__('Installing.'), 'success' => esc_html__('Success.'), 'install_callback' => array($this, '_content_install_type'), 'checked' => $this->is_possible_upgrade() ? 0 : 1);
}
}
$content['widgets'] = array('title' => esc_html__('Widgets'), 'description' => esc_html__('Insert default sidebar widgets as seen in the demo.'), 'pending' => esc_html__('Pending.'), 'installing' => esc_html__('Installing Default Widgets.'), 'success' => esc_html__('Success.'), 'install_callback' => array($this, '_content_install_widgets'), 'checked' => $this->is_possible_upgrade() ? 0 : 1);
$content['settings'] = array('title' => esc_html__('Settings'), 'description' => esc_html__('Configure default settings.'), 'pending' => esc_html__('Pending.'), 'installing' => esc_html__('Installing Default Settings.'), 'success' => esc_html__('Success.'), 'install_callback' => array($this, '_content_install_settings'), 'checked' => $this->is_possible_upgrade() ? 0 : 1);
$content = apply_filters($this->theme_name . '_theme_setup_wizard_content', $content);
return $content;
}