<?php
/*
Plugin Name: Ascend Theme Import Settings
Plugin URI: https://ascendtheme.com/
Description: Auto Import Settings for Ascend theme, works with OCDI
Version: 3.1.1
Author: Eric Johnson
Author URI: https://ericjohnson.guru/
License: GPLv2
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
*/
function ocdi_register_plugins($plugins)
{
$theme_plugins = [
[
'name' => 'Code Snippets', // Name of the plugin.
'slug' => 'code-snippets', // Plugin slug - the same as on www.remarpro.com plugin repository.
'required' => true, // If the plugin is required or not.
'preselected' => true,
],
[
'name' => 'Generate Blocks', // Name of the plugin.
'slug' => 'generateblocks', // Plugin slug - the same as on www.remarpro.com plugin repository.
'required' => true, // If the plugin is required or not.
'preselected' => true,
],
[
'name' => 'Yoast Duplicate Post', // Name of the plugin.
'slug' => 'duplicate-post', // Plugin slug - the same as on www.remarpro.com plugin repository.
'required' => false, // If the plugin is required or not.
'preselected' => true,
],
[
'name' => 'Yoast SEO', // Name of the plugin.
'slug' => 'wordpress-seo', // Plugin slug - the same as on www.remarpro.com plugin repository.
'required' => true, // If the plugin is required or not.
'preselected' => true,
],
[
'name' => 'WP Recipe Maker', // Name of the plugin.
'slug' => 'wp-recipe-maker', // Plugin slug - the same as on www.remarpro.com plugin repository.
'required' => false, // If the plugin is required or not.
'preselected' => true,
],
[
'name' => 'Grow Social', // Name of the plugin.
'slug' => 'social-pug', // Plugin slug - the same as on www.remarpro.com plugin repository.
'required' => false, // If the plugin is required or not.
'preselected' => true,
],
[
'name' => 'Admin color Schemes, a nice way to add more colors to the admin.', // Name of the plugin.
'slug' => 'admin-color-schemes', // Plugin slug - the same as on www.remarpro.com plugin repository.
'required' => false, // If the plugin is required or not.
'preselected' => true,
],
[
'name' => 'WP SVG images - Add SVG support to your WordPress', // Name of the plugin.
'slug' => 'wp-svg-images', // Plugin slug - the same as on www.remarpro.com plugin repository.
'required' => false, // If the plugin is required or not.
'preselected' => true,
],
[
'name' => 'Regenerate Thumbnails', // Name of the plugin.
'slug' => 'regenerate-thumbnails', // Plugin slug - the same as on www.remarpro.com plugin repository.
'required' => false, // If the plugin is required or not.
'preselected' => true,
],
[
'name' => 'generateblocks pro',
'description' => 'Premium Version of Generate Blocks YOU NEED A LICENCE',
'slug' => 'generateblocks-pro', // The slug has to match the extracted folder from the zip.
'source' => 'HIDDEN',
'preselected' => true,
],
// [
// 'name' => 'Generate Press Premium',
// 'description' => 'Premium Version of Generate Press YOU NEED A LICENCE',
// 'slug' => 'gp-premium', // The slug has to match the extracted folder from the zip.
// 'source' => 'HIDDEN',
// 'required' => true, // If the plugin is required or not.
// 'preselected' => true,
// ],
];
return array_merge($plugins, $theme_plugins);
}
add_filter('ocdi/register_plugins', 'ocdi_register_plugins');
function ocdi_import_files()
{
return [
[
'import_file_name' => 'Ascend Theme',
'import_file_url' => 'https://ascendtheme.com/files/2022-06-22-ascendthemecom.WordPress.xml',
'import_widget_file_url' => 'https://ascendtheme.com/files/2022-06-22-ascendtheme.com-widgets.wie',
'import_customizer_file_url' => 'https://ascendtheme.com/files/2022-06-22-generatepress-export-customizer.dat',
'import_preview_image_url' => 'https://ascendtheme.com/wp-content/uploads/2022/01/AscendThemePreview.png',
'preview_url' => 'https://ascendtheme.com/',
],
];
}
add_filter('ocdi/import_files', 'ocdi_import_files');