<?php



require_once dirname( __FILE__ ) . '/vendor/TGM-Plugin-Activation/class-tgm-plugin-activation.php';



function tesseract_register_required_plugins() {

	$tesseract_required_plugins = array(

		array(

			'name'      => 'Beaver Builder',

			'slug'      => 'beaver-builder-lite-version',

			'required'  => false,

			'force_activation'   => false,

			'force_deactivation' => false,

		),

	);



	$config = array(

		'id' => 'tesseract_tgmpa',

		'has_notices'  => true, 				// Show admin notices or not.

		'dismissable'  => true,				// If false, a user cannot dismiss the nag message.

		'is_automatic' => true,				// Automatically activate plugins after installation or not.

	);



	//tgmpa( $tesseract_required_plugins, $config );

}

if ( ! is_plugin_active( 'tesseract-pro-plugin/fl-builder.php' ) ) {

add_action( 'tgmpa_register', 'tesseract_register_required_plugins' );

}

require(dirname(__FILE__).'/../dismissible_notice/src/init.php');