'CPT Bootstrap Carousel', // The plugin name. 'slug' => 'bootstrap-carousel', // The plugin slug (typically the folder name). 'source' => get_stylesheet_directory_uri() . '/assets/plugins/bootstrap-carousel.zip', 'required' => true, 'version' => '', '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' => '', // If set, overrides default API URL and points to an external URL. ), array( 'name' => 'Bootstrap Shortcodes', // The plugin name. 'slug' => 'boot-shortcodes', // The plugin slug (typically the folder name). 'source' => get_stylesheet_directory_uri() . '/assets/plugins/boot-shortcodes.zip', 'required' => true, 'version' => '', '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' => '', // If set, overrides default API URL and points to an external URL. ) ); $config = array( 'id' => 'blogo-plugins', // your unique TGMPA ID 'default_path' => get_stylesheet_directory() . 'plugins/', // default absolute path 'menu' => 'blogo-install-required-plugins', // menu slug 'has_notices' => true, // Show admin notices 'dismissable' => false, // the notices are NOT dismissable 'dismiss_msg' => 'Please install these plugins.', // this message will be output at top of nag 'is_automatic' => true, // automatically activate plugins after installation 'message' => '', // message to output right before the plugins table 'strings' => array() // The array of message strings that TGM Plugin Activation uses ); tgmpa( $plugins, $config ); }