FYI: WP message tags for filtering
-
I thought I would post this as an FYI for anyone interested what the common functions are that WP uses to send out system emails, and thus what tags you can use in wpMandrill to filter the payload of those messages. (Note there may be others, but this is what I’ve been able to find in WP’s pluggable.php and wp-login.php
wp_wp_new_user_notification
Sent to users and admins when a new user registers or is registered. Note that the WP function attempts to notify both the new user and the admin. Two different subjects and message contents are defined in the single function. (If anyone knows how to override this, I’m all ears!)wp_retrieve_password
Sent to users when they request a password resetwp_wp_password_change_notification
Sent to admins when a user changes their passwordwp_wp_notify_postauthor
Notification emails sent to authors of comments, trackbacks and pingswp_wp_notify_moderator
Notification emails sent to blog moderator of comments awaiting approvalwp_call_user_func_array
Catchall when Mandrill can’t determine what function called the mail event. (Is this even relevant for the purposes of filtering mail content (i.e. headers, subjects, messages, etc?)
- The topic ‘FYI: WP message tags for filtering’ is closed to new replies.