Questo utente non ha argomenti preferiti.
Argomenti del forum preferiti
Argomenti del forum creati
Stato |
Argomento
|
Sostenitore | Voci | Post | Freschezza |
---|---|---|---|---|---|
Redis Cache WPML bug with Woocommerce breadcrumbs on fresh WordPress install
1
2
Iniziato da: 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 anno, 6 mese fa |