このユーザーにはお気に入りのトピックがありません。
お気に入りのフォーラムトピック
作成したフォーラムトピック
ステータス |
トピック
|
サポーター | 声 | 投稿 | 新着順 |
---|---|---|---|---|---|
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年、 5ヶ月前 |