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