Skip to content

Commit

Permalink
update method name
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidsector9 committed Feb 26, 2024
1 parent b0d7592 commit 7fa7ab4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions woocommerce-square.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected function __construct() {
if ( $this->is_environment_compatible() ) {
add_action( 'plugins_loaded', array( $this, 'init_plugin' ) );
add_action( 'woocommerce_blocks_payment_method_type_registration', array( $this, 'register_payment_method_block_integrations' ), 5, 1 );
add_action( 'before_woocommerce_init', array( $this, 'declare_hpos_compatibility' ) );
add_action( 'before_woocommerce_init', array( $this, 'declare_features_compatibility' ) );
}
}

Expand Down Expand Up @@ -384,9 +384,9 @@ public function is_environment_compatible() {
}

/**
* Declares support for HPOS.
* Declares support for WooCommerce features.
*/
public function declare_hpos_compatibility() {
public function declare_features_compatibility() {
if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );

Expand Down

0 comments on commit 7fa7ab4

Please sign in to comment.