- 상태
- 개발자가 해결함
- 관련 플러그인/테마
- Customer Reviews for WooCommerce
- 주제 태그
- Compatibility
문제 개요
CusRev의 Customer Reviews for WooCommerce 플러그인과 해당 CusRev visual style이 활성화되어 있을 때, 번역된 리뷰가 예상대로 표시되지 않습니다. WPML 문자열 번역을 통해 리뷰를 번역한 후에도 표시되는 리뷰는 번역된 버전이 아닙니다.
임시 해결 방법
진행하기 전에 사이트의 전체 백업이 있는지 확인하세요.
- 테마의 functions.php 파일에 다음 코드를 추가하세요:
//Fix for compsupp-6829 add_action ('the_comments', 'customer_reviews_remove_hooks', 1, 9); function customer_reviews_remove_hooks($comments) { global $wp_filter; foreach ($wp_filter["the_comments"]->callbacks[10] as $key => $value) { if(str_contains($key, 'translate_product_ids')){ remove_filter( 'the_comments', $key, 10 ); } } return $comments; }