此用户没有收藏的主题。
收藏的论坛主题
创建的论坛主题
状态 |
主题
|
支持者 | 参与者 | 帖子 | 最新活动 |
---|---|---|---|---|---|
Redis Cache WPML bug with Woocommerce breadcrumbs on fresh WordPress install
1
2
发起人:kristianP-7
在: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 years, 6 months前 |