=' ) && version_compare( (string) $wp_version, artbees_QV_MIN_WP, '>=' ) && defined( 'WC_VERSION' ) && version_compare( WC_VERSION, artbees_QV_MIN_WC, '>=' ); } public static function activate() { $requirements = new self(); if ( ! $requirements->is_supported() ) { deactivate_plugins( artbees_QV_BASENAME ); wp_die( esc_html( $requirements->message() ) ); } } public function register_notice() { add_action( 'admin_notices', array( $this, 'render_notice' ) ); } public function render_notice() { printf( '

%s

', esc_html( $this->message() ) ); } private function message() { return sprintf( /* translators: 1: minimum PHP version, 2: minimum WordPress version, 3: minimum WooCommerce version. */ __( 'Artbees Quick View for WooCommerce requires PHP %1$s+, WordPress %2$s+, and WooCommerce %3$s+.', 'artbees-quick-view' ), artbees_QV_MIN_PHP, artbees_QV_MIN_WP, artbees_QV_MIN_WC ); } }