| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Recurio – Ultimate Subscription for WooCommerce |
| 4 |
* Description: Ultimate Subscription Plugin for WooCommerce |
| 5 |
* Version: 1.1.6 |
| 6 |
* Author: DevItems |
| 7 |
* Author URI: https://devitems.com |
| 8 |
* Plugin URI: https://wprecurio.com |
| 9 |
* License: GPL v2 or later |
| 10 |
* Text Domain: recurio |
| 11 |
* Domain Path: /languages |
| 12 |
* Requires at least: 5.8 |
| 13 |
* Requires PHP: 7.4 |
| 14 |
* WC requires at least: 8.0 |
| 15 |
* WC tested up to: 11.1.0 |
| 16 |
*/ |
| 17 |
|
| 18 |
// Prevent direct access |
| 19 |
if (!defined('ABSPATH')) { |
| 20 |
exit; |
| 21 |
} |
| 22 |
|
| 23 |
// Define plugin constants |
| 24 |
define('RECURIO_VERSION', '1.1.6'); |
| 25 |
define('RECURIO_PLUGIN_FILE', __FILE__); |
| 26 |
define('RECURIO_PLUGIN_DIR', plugin_dir_path(__FILE__)); |
| 27 |
define('RECURIO_PLUGIN_URL', plugin_dir_url(__FILE__)); |
| 28 |
define('RECURIO_PLUGIN_BASENAME', plugin_basename(__FILE__)); |
| 29 |
// Load main class |
| 30 |
require_once RECURIO_PLUGIN_DIR . 'includes/base/base.php'; |
| 31 |
// Initialize the plugin |
| 32 |
Recurio::get_instance(); |
| 33 |
|
| 34 |
// Compatible With WooCommerce Custom Order Tables |
| 35 |
add_action('before_woocommerce_init', function () { |
| 36 |
if (class_exists('\Automattic\WooCommerce\Utilities\FeaturesUtil')) { |
| 37 |
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility('custom_order_tables', __FILE__, true); |
| 38 |
} |
| 39 |
}); |
| 40 |
|