<?php
/**
 * Elementor Pro Form Widget - Infusionsoft (Keap) CRM - Integration.
 *
 * @author itgalaxycompany
 *
 * @wordpress-plugin
 * Plugin Name: Elementor Pro Form Widget - Infusionsoft (Keap) CRM - Integration
 * Plugin URI: https://codecanyon.net/item/elementor-pro-form-widget-infusionsoft-keap-crm-integration/33704547
 * Description: Allows you to integrate your Elementor Pro Form Widget forms and Infusionsoft (Keap) CRM
 * Version: 1.6.0
 * Author: itgalaxycompany
 * Author URI: https://codecanyon.net/user/itgalaxycompany
 * License: GPLv3
 * Text Domain: el-pro-form-infusionsoft-integration
 * Domain Path: /languages/
 */

use Itgalaxy\Elementor\Form\Infusionsoft\Integration\Includes\Bootstrap;

if (!defined('ABSPATH')) {
    exit;
}

/**
 * Action Scheduler requires a special loading procedure.
 *
 * @psalm-suppress UnresolvableInclude
 *
 * @see https://actionscheduler.org/usage/
 */
require \plugin_dir_path(__FILE__) . 'vendor/woocommerce/action-scheduler/action-scheduler.php';

/**
 * Use composer autoloader.
 *
 * @psalm-suppress UnresolvableInclude
 */
require \plugin_dir_path(__FILE__) . 'vendor/autoload.php';

/**
 * Registration and load of translations.
 *
 * @see https://developer.wordpress.org/reference/functions/load_plugin_textdomain/
 */
\add_action('init', function () {
    \load_plugin_textdomain('el-pro-form-infusionsoft-integration', false, dirname(\plugin_basename(__FILE__)) . '/languages');
});

/**
 * Register plugin uninstall hook.
 *
 * @see https://developer.wordpress.org/reference/functions/register_uninstall_hook/
 */
\register_uninstall_hook(__FILE__, [Bootstrap::class, 'pluginUninstall']);

/**
 * Load plugin.
 */
Bootstrap::getInstance(__FILE__);
