functions.php
送信者をcontact-name、送信元contact-emailの値に変更
1 2 3 4 5 6 7 |
add_filter( 'mwform_admin_mail_mw-wp-form-xx', 'my_admin_mail', 10, 2 ); function my_admin_mail( $Mail, $data ) { $Mail->sender = $data['contact-name']; $Mail->from = $data['contact-email']; return $Mail; } |
コメント