Filtering Emails with "wpmem_email_newreg"
-
Hi there,
Awesome plugin. I love that there are so many hooks and filters. I’m having a problem with filtering emails.
I’m trying to add an image to the top of the emails like so:
//wp-members customize emails function my_email_filter( $email_content ) { // the content of the email comes to // the filter in the parameter $email_content // you can do whatever you want to it here: // add to it: $email_content = '<img src="https://www.mywebsite.com/logo.png">' . $email_content; // or you could use something like php's // str_replace to filter the string and // add/remove content, etc. // whatever you do, you need to return // the filtered result: return $email_content; } add_filter( 'wpmem_email_newreg', 'my_email_filter' );
However the registration emails aren’t being modified. I’m running the latest version of WP-Members.
Any ideas what might be going wrong?
Thank you!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Filtering Emails with "wpmem_email_newreg"’ is closed to new replies.