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
193 stars 32 forks source link

Handle fetch product data from data stores that don't extend WC_Product_Data_Store_Custom_Table #176

Open pcfreak30 opened 4 years ago

pcfreak30 commented 4 years ago

\WC_Product_Data_Store_CPT::read_product_data calls $post_meta_values = get_post_meta( $id ); which needs to fetch everything.

However, since extensions extend this and not WC_Product_Data_Store_Custom_Table we need to intercept this to return the core data + all other meta as it expects.