1, 'name' => 'Redux Framework', // The plugin name. 'slug' => 'redux-framework', // The plugin slug (typically the folder name). 'source' => 'https://downloads.wordpress.org/plugin/redux-framework.4.3.1.zip', // The plugin source. 'required' => false, // If false, the plugin is only 'recommended' instead of required. 'version' => '', // E.g. 1.0.0. If set, the active plugin must be this version or higher. If the plugin version is higher than the plugin version installed, the user will be notified to update the plugin. 'force_activation' => true, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins. 'external_url' => esc_url('https://downloads.wordpress.org/plugin/redux-framework.4.3.1.zip'), // If set, overrides default API URL and points to an external URL. 'is_callable' => '', // If set, this callable will be be checked for availability to determine if a plugin is active. ), array( 'order' => 2, 'name' => 'Slide Anything', // The plugin name. 'slug' => 'slide-anything', // The plugin slug (typically the folder name). 'source' => 'https://downloads.wordpress.org/plugin/slide-anything.zip', // The plugin source. 'required' => false, // If false, the plugin is only 'recommended' instead of required. 'version' => '', // E.g. 1.0.0. If set, the active plugin must be this version or higher. If the plugin version is higher than the plugin version installed, the user will be notified to update the plugin. 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins. 'external_url' => esc_url('https://downloads.wordpress.org/plugin/slide-anything.zip'), // If set, overrides default API URL and points to an external URL. 'is_callable' => '', // If set, this callable will be be checked for availability to determine if a plugin is active. ), array( 'name' => esc_html__('Woocommerce', 'aspace'), // The plugin name. 'slug' => 'woocommerce', // The plugin slug (typically the folder name). 'source' => '', // The plugin source. 'required' => false, // If false, the plugin is only 'recommended' instead of required. 'version' => '', // E.g. 1.0.0. If set, the active plugin must be this version or higher. If the plugin version is higher than the plugin version installed, the user will be notified to update the plugin. 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins. 'external_url' => esc_url('https://downloads.wordpress.org/plugin/woocommerce.3.4.5.zip'), // If set, overrides default API URL and points to an external URL. 'is_callable' => '', // If set, this callable will be be checked for availability to determine if a plugin is active. ), array( 'name' => esc_html__('Groovy Menu', 'aspace'), // The plugin name. 'slug' => 'groovy-menu', // The plugin slug (typically the folder name). 'source' => 'https://downloads.wordpress.org/plugin/groovy-menu-free.1.3.7.zip', // The plugin source. 'required' => true, // If false, the plugin is only 'recommended' instead of required. 'version' => '', // E.g. 1.0.0. If set, the active plugin must be this version or higher. If the plugin version is higher than the plugin version installed, the user will be notified to update the plugin. 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins. 'external_url' => esc_url('https://downloads.wordpress.org/plugin/one-click-demo-import.2.5.1.zip'), // If set, overrides default API URL and points to an external URL. 'is_callable' => '', // If set, this callable will be be checked for availability to determine if a plugin is active. ), array( 'name' => esc_html__('One Click Demo Import', 'aspace'), // The plugin name. 'slug' => 'one-click-demo-import', // The plugin slug (typically the folder name). 'source' => 'https://downloads.wordpress.org/plugin/one-click-demo-import.3.0.2.zip', // The plugin source. 'required' => false, // If false, the plugin is only 'recommended' instead of required. 'version' => '', // E.g. 1.0.0. If set, the active plugin must be this version or higher. If the plugin version is higher than the plugin version installed, the user will be notified to update the plugin. 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins. 'external_url' => esc_url('https://downloads.wordpress.org/plugin/one-click-demo-import.2.5.1.zip'), // If set, overrides default API URL and points to an external URL. 'is_callable' => '', // If set, this callable will be be checked for availability to determine if a plugin is active. ), array( 'name' => esc_html__('WPUpper Share Buttons', 'aspace'), // The plugin name. 'slug' => 'wpupper-share-buttons', // The plugin slug (typically the folder name). 'source' => '', // The plugin source. 'required' => false, // If false, the plugin is only 'recommended' instead of required. 'version' => '', // E.g. 1.0.0. If set, the active plugin must be this version or higher. If the plugin version is higher than the plugin version installed, the user will be notified to update the plugin. 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins. 'external_url' => esc_url('https://downloads.wordpress.org/plugin/wpupper-share-buttons.3.42.zip'), // If set, overrides default API URL and points to an external URL. 'is_callable' => '', // If set, this callable will be be checked for availability to determine if a plugin is active. ), array( 'name' => esc_html__('Elementor Website Builder', 'aspace'), // The plugin name. 'slug' => 'elementor-website', // The plugin slug (typically the folder name). 'source' => 'https://downloads.wordpress.org/plugin/elementor.3.4.5.zip', // The plugin source. 'required' => false, // If false, the plugin is only 'recommended' instead of required. 'version' => '', // E.g. 1.0.0. If set, the active plugin must be this version or higher. If the plugin version is higher than the plugin version installed, the user will be notified to update the plugin. 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins. 'external_url' => esc_url('https://downloads.wordpress.org/plugin/elementor.3.4.5.zip'), // If set, overrides default API URL and points to an external URL. 'is_callable' => '', // If set, this callable will be be checked for availability to determine if a plugin is active. ), array( 'name' => esc_html__('Envato Elements', 'aspace'), // The plugin name. 'slug' => 'envato-elements', // The plugin slug (typically the folder name). 'source' => '', // The plugin source. 'required' => false, // If false, the plugin is only 'recommended' instead of required. 'version' => '', // E.g. 1.0.0. If set, the active plugin must be this version or higher. If the plugin version is higher than the plugin version installed, the user will be notified to update the plugin. 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins. 'external_url' => esc_url('https://downloads.wordpress.org/plugin/envato-elements.latest-stable.zip'), // If set, overrides default API URL and points to an external URL. 'is_callable' => '', // If set, this callable will be be checked for availability to determine if a plugin is active. ), array( 'is_automatic' => true )); $config = array( 'id' => 'tgmpa', // Unique ID for hashing notices for multiple instances of TGMPA. 'default_path' => '', // Default absolute path to bundled plugins. 'menu' => 'tgmpa-install-plugins', // Menu slug. 'parent_slug' => 'themes.php', // Parent menu slug. 'capability' => 'edit_theme_options', // Capability needed to view plugin install page, should be a capability associated with the parent menu used. 'has_notices' => true, // Show admin notices or not. 'dismissable' => true, // If false, a user cannot dismiss the nag message. 'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag. 'is_automatic' => false, // Automatically activate plugins after installation or not. 'message' => '', // Message to output right before the plugins table. ); tgmpa($plugins, $config); } add_action( 'tgmpa_register', 'redux_register_required_plugins' );