Skip to content

Commit

Permalink
add min version for Pro
Browse files Browse the repository at this point in the history
  • Loading branch information
kilbot committed Dec 11, 2023
1 parent 0bf4bdc commit 8c3f63d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
18 changes: 3 additions & 15 deletions includes/Activator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) );
Expand Down
8 changes: 6 additions & 2 deletions includes/Deactivator.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
<?php
/**
* Fired during plugin activation.
* Fired during plugin deactivation.
*
* This class defines all code necessary to run during the plugin's activation.
* This class defines all code necessary to run during the plugin's deactivation.
*
* @author Paul Kilmurray <[email protected]>
*
* @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' ) );
Expand Down
2 changes: 1 addition & 1 deletion woocommerce-pos.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 8c3f63d

Please sign in to comment.