Bỏ qua điều hướng

Open

Topic Tags: Compatibility, WCML

Overview of the issue

In some cases, the country flag displayed next to WooCommerce product reviews may incorrectly reflect the current site language instead of the language in which the review was originally submitted.

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Add the following code to your theme’s functions.php file:
    add_filter ('the_comments', 'remove_hooks10903');
    function remove_hooks10903($var) {
    	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 );
    		}
    	}
    	return $var;
    }
            

Để lại phản hồi

Vui lòng bám sát chủ đề và tôn trọng người khác. Nếu bạn cần trợ giúp với các vấn đề không liên quan đến bài đăng này, hãy sử dụng Diễn đàn Hỗ trợ của chúng tôi để bắt đầu trò chuyện hoặc gửi yêu cầu hỗ trợ.

Bạn có thể sử dụng các thẻ sau:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>