이 사용자는 즐겨찾는 주제가 없습니다.
즐겨찾는 포럼 주제
포럼 주제가 생성되었습니다.
상태 |
주제
|
서포터 | 목소리 | 게시물 | 선도 |
---|---|---|---|---|---|
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 년, 6 월 전에 |