From 8c3f63d6ea5a8fd017f063c404b41ff990ffa498 Mon Sep 17 00:00:00 2001 From: Paul Kilmurray Date: Mon, 11 Dec 2023 12:26:11 +0100 Subject: [PATCH] add min version for Pro --- includes/Activator.php | 18 +++--------------- includes/Deactivator.php | 8 ++++++-- woocommerce-pos.php | 2 +- 3 files changed, 10 insertions(+), 18 deletions(-) diff --git a/includes/Activator.php b/includes/Activator.php index deeb8c6..fb142dc 100644 --- a/includes/Activator.php +++ b/includes/Activator.php @@ -10,23 +10,11 @@ namespace WCPOS\WooCommercePOS; -use function add_action; -use function add_role; -use function admin_url; -use function class_exists; -use function deactivate_plugins; -use function defined; -use function did_action; -use function function_exists; -use function is_admin; -use function is_multisite; -use function register_activation_hook; -use function restore_current_blog; -use function sprintf; -use function switch_to_blog; -use function version_compare; use const DOING_AJAX; +/** + * + */ class Activator { public function __construct() { register_activation_hook( PLUGIN_FILE, array( $this, 'activate' ) ); diff --git a/includes/Deactivator.php b/includes/Deactivator.php index 3d3890e..86f26e7 100644 --- a/includes/Deactivator.php +++ b/includes/Deactivator.php @@ -1,16 +1,20 @@ * * @see http://wcpos.com + * @package WooCommercePOS */ namespace WCPOS\WooCommercePOS; +/** + * Fired during plugin deactivation. + */ class Deactivator { public function __construct() { register_deactivation_hook( PLUGIN_FILE, array( $this, 'deactivate' ) ); diff --git a/woocommerce-pos.php b/woocommerce-pos.php index 93d3898..0cf9a84 100644 --- a/woocommerce-pos.php +++ b/woocommerce-pos.php @@ -33,7 +33,7 @@ // minimum requirements. const WC_MIN_VERSION = '5.3'; const PHP_MIN_VERSION = '7.4'; -const MIN_PRO_VERSION = '1.2.0'; +const MIN_PRO_VERSION = '1.4.0-beta.3'; // load .env flags (for development). function load_env( $file ) {