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

Commit

Permalink
Update HPOS compatibility snippet (#7395)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexflorisca authored Oct 13, 2022
1 parent afc797e commit d69723b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions woocommerce-gutenberg-products-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
}

// Declare compatibility with custom order tables for WooCommerce.
if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
add_action(
'before_woocommerce_init',
function () {
add_action(
'before_woocommerce_init',
function () {
if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
}
);
}
}
);

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

0 comments on commit d69723b

Please sign in to comment.