WC3.0 compatibility issue
-
In WC3.0 the filter being used here was deprecated.
I thought I’d share my findings to help others here.If after updating to wc3.0 you find this doesn’t work, change line 19 from
add_filter(‘woocommerce_product_default_attributes’, ‘setup_swatches’, 10, 1);
to
add_filter(‘woocommerce_product_get_default_attributes’, ‘setup_swatches’, 10, 1);Cheers,
Joel
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘WC3.0 compatibility issue’ is closed to new replies.