'Redux Framework', 'slug' => 'redux-framework', 'required' => false, ), array( 'name' => 'Advanced Custom Fields', // The plugin name. 'slug' => 'advanced-custom-fields', // The plugin slug (typically the folder name). 'required' => false, // If false, the plugin is only 'recommended' instead of required. 'external_url' => 'http://wordpress.org/plugins/advanced-custom-fields', // If set, overrides default API URL and points to an external URL. ), array( 'name' => 'CV Card ToolKit', // The plugin name. 'slug' => 'cv-card-toolkit', // The plugin slug (typically the folder name). 'required' => false, // If false, the plugin is only 'recommended' instead of required. ), ); $config = array( 'domain' => 'redux-framework', // Text domain - likely want to be the same as your theme. 'default_path' => '', // Default absolute path to pre-packaged plugins 'parent_menu_slug' => 'plugins.php', // Default parent menu slug 'parent_url_slug' => 'plugins.php', // Default parent URL slug 'menu' => 'install-required-plugins', // Menu slug 'has_notices' => true, // Show admin notices or not 'is_automatic' => true, // Automatically activate plugins after installation or not ); tgmpa( $plugins, $config ); } add_action( 'tgmpa_register', 'starter_plugin_register_required_plugins' );