woocommerce / woocommerce-product-tables-feature-plugin

Implements new data-stores and moves product data into custom tables, with a new, normalised data structure.
GNU General Public License v3.0
192 stars 32 forks source link

Woocommerce Subscriptions and Compatibility Recursion Loop #128

Closed pcfreak30 closed 5 years ago

pcfreak30 commented 6 years ago

There is a filter loop caused by \WC_Product_Variable_Data_Store_CPT::read_attributes and \WC_Product_Tables_Backwards_Compatibility::get_product_attributes/ the BC hooks need to either check the filter level (I used array_count_values($GLOBALS['wp_current_filter'])['get_post_metadata'] > 1 in debug) or unhook itself in get_product_attributes