File: /disk001/machen/public_html/support/wp-content/themes/learnmore/inc/core/recommended-plugins.php
<?php
/**
* This file represents an example of the code that themes would use to register
* the required plugins.
*
* It is expected that theme authors would copy and paste this code into their
* functions.php file, and amend to suit.
*
* @see http://tgmpluginactivation.com/configuration/ for detailed documentation.
*
* @package TGM-Plugin-Activation
* @version 2.6.1 for parent theme Learn More for publication on WordPress.org
* @author Thomas Griffin, Gary Jones, Juliette Reinders Folmer
* @copyright Copyright (c) 2011, Thomas Griffin
* @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later
* @link https://github.com/TGMPA/TGM-Plugin-Activation
*/
require_once get_template_directory() . '/inc/TGMPA/class-tgm-plugin-activation.php';
add_action( 'tgmpa_register', 'learnmore_register_required_plugins' );
/**
* Register the required plugins for this theme.
*/
function learnmore_register_required_plugins() {
$plugins = array(
array(
'name' => 'Kirki Customizer Framework',
'slug' => 'kirki',
'required' => false,
),
array(
'name' => 'Yoast SEO',
'slug' => 'wordpress-seo',
'required' => false,
),
);
/*
* Array of configuration settings. Amend each line as needed.
*
* TGMPA will start providing localized text strings soon. If you already have translations of our standard
* strings available, please help us make TGMPA even better by giving us access to these translations or by
* sending in a pull-request with .po file(s) with the translations.
*
* Only uncomment the strings in the config array if you want to customize the strings.
*/
$config = array(
'id' => 'learnmore',
'default_path' => '',
'menu' => 'tgmpa-install-plugins',
'has_notices' => true,
'dismissable' => true,
'dismiss_msg' => '',
'is_automatic' => false,
'message' => '',
);
tgmpa( $plugins, $config );
}