Membership update email
-
I am trying to generate an admin email for when a member upgrades or downgrades. Preferably this email would include the price too.
My function (modified from previous s2member forum) is:
add_action ('ws_plugin__s2member_during_handle_profile_modifications', 'profile_change_notify'); function profile_change_notify ($vars = array ()) { $user = new WP_User ($vars['user_id']); $msg = 'User has been updated. Name: '.$user->user_firstname.' '.$user->user_lastname.' Email: '.$user->user_email.' New Level: '.get_user_field("s2member_access_label",$user->ID); wp_mail ('[email protected]', 'User update', $msg); }
Is the price they have just paid available in $vars?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Membership update email’ is closed to new replies.