<?php
require_once get_template_directory() . '/includes/plugins/class-tgm-plugin-activation.php';

function soundwave_required_plugins() {

	$plugins = array(

		array(
			'name'               => 'Soundwave Options',
			'slug'               => 'soundwave-options',
			'source'             => get_template_directory() . '/includes/plugins/soundwave-options.zip',
			'required'           => true, 
			'version'            => '',
			'force_activation'   => true,
			'force_deactivation' => true,
			'external_url'       => '',
			'is_callable'        => '',
		),
        
        array(
			'name'               => 'Soundwave Post Type',
			'slug'               => 'soundwave-post-type',
			'source'             => get_template_directory() . '/includes/plugins/soundwave-post-type.zip',
			'required'           => true, 
			'version'            => '',
			'force_activation'   => true,
			'force_deactivation' => true,
			'external_url'       => '',
			'is_callable'        => '',
		),
        
        array(
			'name'               => 'Soundwave Shortcode',
			'slug'               => 'soundwave-shortcode',
			'source'             => get_template_directory() . '/includes/plugins/soundwave-shortcode.zip',
			'required'           => true, 
			'version'            => '',
			'force_activation'   => true,
			'force_deactivation' => true,
			'external_url'       => '',
			'is_callable'        => '',
		),
       
		array(
			'name'        => 'WordPress SEO by Yoast',
			'slug'        => 'wordpress-seo',
			'is_callable' => 'wpseo_init',
		),

	);

	$config = array(
		'id'           => 'wize',           
		'default_path' => '',                    
		'menu'         => 'wize-install-plugins', 
		'has_notices'  => true,                   
		'dismissable'  => true,                    
		'dismiss_msg'  => '',                    
		'is_automatic' => false,                   
		'message'      => '',                    

	);

	tgmpa( $plugins, $config );
}

add_action( 'tgmpa_register', 'soundwave_required_plugins' );