- Trạng thái
- Đã được giải quyết bởi nhà phát triển
- Plugin/giao diện liên quan
- Customer Reviews for WooCommerce
- Thẻ chủ đề
- Compatibility
Tổng quan về lỗi
Khi plugin Customer Reviews for WooCommerce của CusRev và CusRev visual style của nó được kích hoạt, các đánh giá đã dịch không được hiển thị như mong đợi. Ngay cả sau khi dịch đánh giá thông qua WPML Dịch Chuỗi, đánh giá được hiển thị không phải là phiên bản đã dịch.
Giải pháp tạm thời
Vui lòng đảm bảo bạn có bản sao lưu đầy đủ của trang web trước khi tiếp tục.
- Thêm đoạn mã sau vào tệp functions.php trong giao diện của bạn:
//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; }