<?php

function blockshop_register_required_plugins() {
	$plugins = array(
		'woocommerce'           => array(
			'name'     			=> 'WooCommerce',
			'slug'     			=> 'woocommerce',
			'required' 			=> true,
		),
		'hookmeup'              => array(
            'name'              => 'WooCommerce Hookmeup',
            'slug'              => 'hookmeup',
            'required'          => true,
        ),
		'product-blocks-for-woocommerce' => array(
			'name'              => 'Product Blocks for WooCommerce',
			'slug'              => 'product-blocks-for-woocommerce',
			'required'          => true,
        ),
        'kits-templates-and-patterns' => array(
            'name'               => 'Kits, Templates and Patterns',
            'slug'               => 'kits-templates-and-patterns',
            'required'           => false,
        ),
	);

	$config = array(
        'id'                => 'getbowtied',
        'default_path'      => '',
        'parent_slug'       => 'getbowtied-dashboard',
        'menu'              => 'getbowtied-plugins',
        'capability'        => 'edit_theme_options',
        'has_notices'       => true,
        'is_automatic'      => true,
        //'message'      		=> '',
        'strings'      => array(
			'page_title'                      => __( 'Plugins', 'shopkeeper' ),
			'menu_title'                      => __( 'Plugins', 'shopkeeper' ),
		)
    );

	tgmpa( $plugins, $config );
}
add_action( 'tgmpa_register', 'blockshop_register_required_plugins' );
