<?php
/**
 * Plugin Name: Reloadify
 * Text Domain: tsd-reloadify
 * Domain Path: /assets/languages
 * Plugin URI: https://www.reloadify.com/e-mail-marketing-voor-woocommerce/
 * Description: Reloadify synchroniseert moeiteloos alle gegevens van je Woocommerce webshop met de Reloadify software. Volledig realtime.
 * Version: 1.10.0
 * Author: Modern Media Hub
 * Author URI: https://modernmediahub.com/
 * Requires at least: 5.9
 * Tested up to: 6.7
 * Requires at least PHP 7.4
 * WC tested up to: 8.4.0
 */

require_once __DIR__ . '/deps/scoper-autoload.php';
require_once __DIR__ . '/vendor/autoload.php';

// Declare HPOS compatibility as early as possible so WooCommerce can detect it.
add_action('before_woocommerce_init', function () {
    if (class_exists('\Automattic\WooCommerce\Utilities\FeaturesUtil')) {
        \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility('custom_order_tables', plugin_basename(__FILE__), true);
    }
});

Tussendoor\Reloadify\Plugin::setup();

$app = new Tussendoor\Reloadify\App();
$app->boot();


require __DIR__ . '/wppm-updater.php';
