Last active
February 13, 2020 05:49
-
-
Save webtoffee-git/fa9d16211abe8e53c4ba4d54bca285c4 to your computer and use it in GitHub Desktop.
Send custom mail content for new users while import - using WebToffee user import export plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter('wt_user_registration_email', 'wt_user_registration_email_callback'); | |
| function wt_user_registration_email_callback($mail_attrs) { | |
| //$mail_attrs['body'] | |
| $mail_attrs['body'] = 'Custom email body'; | |
| return $mail_attrs; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment