Skip to content

Commit 3d2bea3

Browse files
authored
Declare HPOS incompatibility (#2428)
1 parent 75c69dc commit 3d2bea3

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
= 6.9.0 - 2022-xx-xx =
44
* Tweak - Remove remaining traces of old Stripe settings.
55
* Add - Add Boleto expiration setting.
6+
* Add - Declare incompatibility with HPOS.
67

78
= 6.8.0 - 2022-09-28 =
89
* Fix - Minor adjustments for Custom Order Tables compatibility.

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,5 +131,6 @@ If you get stuck, you can ask for help in the Plugin Forum.
131131
= 6.9.0 - 2022-xx-xx =
132132
* Tweak - Remove remaining traces of old Stripe settings.
133133
* Add - Add Boleto expiration setting.
134+
* Add - Declare incompatibility with HPOS.
134135

135136
[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/trunk/changelog.txt).

woocommerce-gateway-stripe.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,3 +768,12 @@ function() {
768768
);
769769
}
770770
}
771+
772+
add_action(
773+
'before_woocommerce_init',
774+
function() {
775+
if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
776+
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, false );
777+
}
778+
}
779+
);

0 commit comments

Comments
 (0)