- สถานะ
- รอผู้พัฒนา
- ปลั๊กอิน/ธีมที่เกี่ยวข้อง
- Follow-Up Emails
ภาพรวมของปัญหา
เมื่อใช้ปลั๊กอิน Follow-Up Emails ของ WooCommerce แทนที่จะส่งอีเมลเพียงฉบับเดียว ปลั๊กอินกลับส่งอีเมลซ้ำกันหลายฉบับ ซึ่งเท่ากับจำนวนภาษาที่คุณได้ติดตั้งไว้บนไซต์ของคุณ
ปัญหานี้เกิดขึ้นเนื่องจากปลั๊กอินใช้ฟังก์ชัน get_posts() ของ WordPress ซึ่งจะดึงโพสต์ในทุกภาษา เว้นแต่เราจะกำหนด ‘suppress_filters’ => false.
วิธีแก้ปัญหาชั่วคราว
โปรดสำรองข้อมูลไซต์ของคุณทั้งหมดก่อนดำเนินการต่อ
- เปิดไฟล์ wp-content/plugins/woocommerce-follow-up-emails/includes/fue-functions.php
- ค้นหาบรรทัดที่ 551
- แทนที่โค้ดต่อไปนี้:
function fue_get_emails( $type = 'any', $status = '', $filters = array() ) { $args = array( 'nopaging' => true, 'orderby' => 'ID', 'order' => 'DESC', 'post_type' => 'follow_up_email', ); - ด้วย:
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 );