| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Plugin Name: Sendy |
| 5 |
* Plugin URI: https://app.sendy.nl/ |
| 6 |
* Description: A WooCommerce plugin that connects your site to the Sendy platform |
| 7 |
* Version: 3.2.2 |
| 8 |
* Author: Sendy |
| 9 |
* Author URI: https://sendy.nl/ |
| 10 |
* License: MIT |
| 11 |
* Text Domain: sendy |
| 12 |
* Domain Path: /languages |
| 13 |
* Requires at least: 5.2 |
| 14 |
* Tested up to: 6.8 |
| 15 |
* Requires PHP: 7.4 |
| 16 |
* Requires Plugins: woocommerce |
| 17 |
* WC requires at least: 8.2 |
| 18 |
* WC tested up to: 9.8.2 |
| 19 |
* |
| 20 |
* @package Sendy |
| 21 |
*/ |
| 22 |
|
| 23 |
if (! defined('ABSPATH')) { |
| 24 |
exit; |
| 25 |
} |
| 26 |
|
| 27 |
if (! defined('SENDY_WC_PLUGIN_FILE')) { |
| 28 |
define('SENDY_WC_PLUGIN_FILE', __FILE__); |
| 29 |
} |
| 30 |
|
| 31 |
if (! defined('SENDY_WC_PLUGIN_BASENAME')) { |
| 32 |
define('SENDY_WC_PLUGIN_BASENAME', plugin_basename(SENDY_WC_PLUGIN_FILE)); |
| 33 |
} |
| 34 |
|
| 35 |
require_once __DIR__ . '/vendor/autoload.php'; |
| 36 |
|
| 37 |
function sendy_init() { |
| 38 |
require_once __DIR__ . '/src/helpers.php'; |
| 39 |
|
| 40 |
return Sendy\WooCommerce\Plugin::instance(); |
| 41 |
} |
| 42 |
|
| 43 |
add_action('plugins_loaded', 'sendy_init'); |
| 44 |
|
| 45 |
register_deactivation_hook(__FILE__, function () { |
| 46 |
Sendy\WooCommerce\Plugin::instance()->deactivate(); |
| 47 |
}); |
| 48 |
|