- ステータス
- 開発者からの返答待ち
- 関連するプラグイン/テーマ
- Follow-Up Emails
問題の概要
WooCommerceのFollow-Up Emailsプラグインを使用すると、1通のメールのみが送信されるのではなく、サイトにインストールされている言語の数と同じ数の複数の複製メールが送信されます。
この問題は、プラグインがWordPressのget_posts() 関数を使用しているために発生します。‘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 );