swissChili | f0cbdc3 | 2023-01-05 17:21:38 -0500 | [diff] [blame] | 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | exit; |
| 4 | } |
| 5 | |
| 6 | class WC_Stripe_UPE_Compatibility { |
| 7 | const MIN_WP_VERSION = '5.6'; |
| 8 | const MIN_WC_VERSION = '5.5'; |
| 9 | const LEARN_MORE_LINK = 'https://developer.woocommerce.com/2021/08/26/developer-advisory-woocommerce-stripe-support-policy-change/'; |
| 10 | |
| 11 | public static function is_wp_supported() { |
| 12 | return version_compare( get_bloginfo( 'version' ), self::MIN_WP_VERSION, '>=' ); |
| 13 | } |
| 14 | |
| 15 | public static function is_wc_supported() { |
| 16 | return version_compare( WC_VERSION, self::MIN_WC_VERSION, '>=' ); |
| 17 | } |
| 18 | } |