Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit b2bb28d

Browse files
Alex Floriscawavvves
authored andcommitted
Update HPOS compatibility snippet (#7395)
1 parent 5f2e0e0 commit b2bb28d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

woocommerce-gutenberg-products-block.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
}
2626

2727
// Declare compatibility with custom order tables for WooCommerce.
28-
if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
29-
add_action(
30-
'before_woocommerce_init',
31-
function () {
28+
add_action(
29+
'before_woocommerce_init',
30+
function () {
31+
if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
3232
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
3333
}
34-
);
35-
}
34+
}
35+
);
3636

3737
/**
3838
* Whether notices must be displayed in the current page (plugins and WooCommerce pages).

0 commit comments

Comments
 (0)