/home/awneajlw/public_html/wp-content/themes/codz/inc/tgmpa/tgmpa.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.
 *
 * @package    TGM-Plugin-Activation
 * @subpackage Example
 * @version    2.4.1
 * @author     Thomas Griffin
 * @author     Gary Jones
 * @copyright  Copyright (c) 2011, Thomas Griffin
 * @license    //opensource.org/licenses/gpl-2.0.php GPL v2 or later
 * @link       //github.com/thomasgriffin/TGM-Plugin-Activation
 */

require_once get_template_directory() . '/inc/tgmpa/class-tgm-plugin-activation.php';

/**
 * Undocumented function
 */
function codz_register_required_plugins() {
	$plugins = array(
        // Redux Framework.
		array(
			'name'     => esc_html__( 'Redux Framework', 'codz' ),
			'slug'     => 'redux-framework',
			'required' => true,
		),
		// One Click Demo Import.
		array(
			'name'     => esc_html__( 'One Click Demo Import', 'codz' ),
			'slug'     => 'one-click-demo-import',
			'required' => true,
		),
		// Elementor.
		array(
			'name'     => esc_html__( 'Elementor', 'codz' ),
			'slug'     => 'elementor',
			'required' => true,
		),
		// AnyWhere Elementor.
		array(
			'name'     => 'AnyWhere Elementor',
			'slug'     => 'anywhere-elementor',
			'required' => true,
		),
		// Contact Form 7.
		array(
			'name'     => 'Contact Form 7',
			'slug'     => 'contact-form-7',
			'required' => true,
		),
		// Contact Form7 Widget For Elementor Page Builder.
		array(
			'name'     => 'Contact Form7 Widget For Elementor Page Builder',
			'slug'     => 'cf7-widget-elementor',
			'required' => true,
		),
		// Advanced Custom Fields.
		array(
			'name'     => 'Advanced Custom Fields',
			'slug'     => 'advanced-custom-fields',
			'required' => true,
		),
		// RT Custom Post Type.
		array(
			'name'     => esc_html__( 'RadiantThemes Custom Post Type', 'codz' ),
			'slug'     => 'radiantthemes-custom-post-type',
			'source'   => 'https://codz.radiantthemes.com/plugins/radiantthemes-custom-post-type.zip',
			'required' => true,
			'version'  => '1.0.0',
		),
		// RadiantThemes Addons.
		array(
			'name'     => esc_html__( 'Radiantthemes Addons', 'codz' ),
			'slug'     => 'radiantthemes-addons',
			'source'   => 'https://codz.radiantthemes.com/plugins/radiantthemes-addons.zip',
			'required' => true,
			'version'  => '1.0.0',
		),
		// Slider Revolution.
		array(
			'name'     => esc_html__( 'Slider Revolution', 'codz' ),
			'slug'     => 'revslider',
			'source'   => 'https://codz.radiantthemes.com/plugins/revslider.zip',
			'required' => true,
			'version'  => '6.1.5',
		),
		// WooCommerce.
		array(
			'name'     => esc_html__( 'WooCommerce', 'codz' ),
			'slug'     => 'woocommerce',
			'required' => 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' => true,                    // Automatically activate plugins after installation or not.
		'message'      => '',                      // Message to output right before the plugins table.
	);

	tgmpa( $plugins, $config );

}
add_action( 'tgmpa_register', 'codz_register_required_plugins' );