'Redux Framework', // The plugin name. 'slug' => 'redux-framework', // The plugin slug (typically the folder name). 'required' => false, // If false, the plugin is only 'recommended' instead of required. 'force_activation' => true, 'force_deactivation' => true, ), array( 'name' => 'Master Slider', // The plugin name. 'slug' => 'master-slider', // The plugin slug (typically the folder name). 'required' => false, // If false, the plugin is only 'recommended' instead of required. ), array( 'name' => 'Email Newsletter', 'slug' => 'email-newsletter', 'required' => false, ), array( 'name' => 'Featured Video Plus', // The plugin name. 'slug' => 'featured-video-plus', // The plugin slug (typically the folder name). 'required' => false, 'force_activation' => true, 'force_deactivation' => false, ), ); $config = array( 'domain' => 'alpha-nx-one', // 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', 'nx_theme_recommended_plugins' );