WPML
상태
개발자 대기 중
관련 플러그인/테마
Follow-Up Emails

문제 개요

WooCommerce의 Follow-Up Emails 플러그인을 사용할 때 이메일을 하나만 보내는 대신, 플러그인이 사이트에 설치된 언어 수만큼 여러 중복 이메일을 보냅니다.

이 문제는 플러그인이 get_posts() WordPress 함수를 사용하기 때문에 발생합니다. 이 함수는 ‘suppress_filters’ => false.를 정의하지 않으면 모든 언어의 글을 가져옵니다.

임시 해결 방법

진행하기 전에 사이트를 전체 백업하세요.


  1. wp-content/plugins/woocommerce-follow-up-emails/includes/fue-functions.php 파일을 여세요.

  2. 551번째 줄을 찾으세요.

  3. 다음 스니펫을:
        function fue_get_emails( $type = 'any', $status = '', $filters = array() ) {
        	$args = array(
        		'nopaging'  => true,
        		'orderby'   => 'ID',
        		'order'     => 'DESC',		
        		'post_type' => 'follow_up_email',
        	);


  4. 다음으로 바꾸세요:
        function fue_get_emails( $type = 'any', $status = '', $filters = array() ) {
        	$args = array(
        		'nopaging'  => true,
        		'orderby'   => 'ID',
        		'order'     => 'DESC',		
        		'post_type' => 'follow_up_email',
        		'suppress_filters' => false
        	);

알려진 모든 문제 →