This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
Status |
Topic
|
Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Redis Cache WPML bug with Woocommerce breadcrumbs on fresh WordPress install
1
2
Started by: kristianP-7
in: English Support
Problem: Solution: <!-- Custom PHP code provided by WPML support --><br />add_filter('woocommerce_get_product_terms', function($terms, $product_id, $taxonomy, $args){<br /> global $sitepress;<br /><br /> if (method_exists($sitepress, 'is_display_as_translated_post_type') && $sitepress->is_display_as_translated_post_type('product')) {<br /> $args['wpml_lang'] = apply_filters( 'wpml_current_language', null );<br /> return _wc_get_cached_product_terms( $product_id, $taxonomy, $args );<br /> }<br /><br /> return $terms;<br />}, 10, 4);<br /> If this solution does not seem relevant to your situation, please do not hesitate to open a new support ticket with us. |
|
2 | 25 | 1 year, 5 months ago |