Skip to content

Commit

Permalink
Add tracking support for key HPOS options. (woocommerce#35446)
Browse files Browse the repository at this point in the history
  • Loading branch information
barryhughes authored Nov 24, 2022
1 parent db737f2 commit f6edcbc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/woocommerce/changelog/fix-34898-hpos-tracker
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: add

Add HPOS information to WC Tracker.
5 changes: 5 additions & 0 deletions plugins/woocommerce/includes/class-wc-tracker.php
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,11 @@ private static function get_all_woocommerce_options_values() {
'enable_myaccount_registration' => get_option( 'woocommerce_enable_myaccount_registration' ),
'registration_generate_username' => get_option( 'woocommerce_registration_generate_username' ),
'registration_generate_password' => get_option( 'woocommerce_registration_generate_password' ),
'hpos_enabled' => get_option( 'woocommerce_feature_custom_order_tables_enabled' ),
'hpos_sync_enabled' => get_option( 'woocommerce_custom_orders_table_data_sync_enabled' ),
'hpos_cot_authoritative' => get_option( 'woocommerce_custom_orders_table_enabled' ),
'hpos_transactions_enabled' => get_option( 'woocommerce_use_db_transactions_for_custom_orders_table_data_sync' ),
'hpos_transactions_level' => get_option( 'woocommerce_db_transactions_isolation_level_for_custom_orders_table_data_sync' ),
);
}

Expand Down

0 comments on commit f6edcbc

Please sign in to comment.