PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
<?php
add_action ('ws_plugin__s2member_during_handle_profile_modifications', 'email_profile_changes');
function email_profile_changes($vars = array())
{
$user = new WP_User($vars['user_id']);
wp_mail ('me@me.net', 'Profile Update- ' . $user->user_login, '
There has been an update to the user in the subject please verify. mysite.net/wp-login.php');
}
?>
<?php
add_action ('ws_plugin__s2member_during_handle_profile_modifications', 'email_profile_changes');
function email_profile_changes($vars = array())
{
$user = new WP_User($vars['user_id']);
wp_mail ('me@mydomain.com', 'Profile update - ' . $user->user_login, '
Username: ' . $user->mysite_wp_s2member_custom_fields['Username'] . '
Email: ' . $user->mysite_wp_s2member_custom_fields['Email'] . '
First Name: ' . $user->mysite_wp_s2member_custom_fields['First Name'] . '
Last Name: ' . $user->mysite_wp_s2member_custom_fields['Last Name'] . '
middle: ' . $user->mysite_wp_s2member_custom_fields['middle'] . '
Suffix: ' . $user->mysite_wp_s2member_custom_fields['Suffix'] . '
Nickname: ' . $user->mysite_wp_s2member_custom_fields['Nickname'] . '
status: ' . $user->mysite_wp_s2member_custom_fields['status'] . '
Chapter: ' . $user->mysite_wp_s2member_custom_fields['Chapter'] . '
Grad: ' . $user->mysite_wp_s2member_custom_fields['Grad'] . '
Address: ' . $user->mysite_wp_s2member_custom_fields['Address'] . '
City: ' . $user->mysite_wp_s2member_custom_fields['City'] . '
State: ' . $user->mysite_wp_s2member_custom_fields['State'] . '
Zip: ' . $user->mysite_wp_s2member_custom_fields['Zip'] . '
country: ' . $user->mysite_wp_s2member_custom_fields['country'] . '
main_phone: ' . $user->mysite_wp_s2member_custom_fields['main_phone'] . '
secondary_phone_number: ' . $user->mysite_wp_s2member_custom_fields['secondary_phone_number'] . '
facebook: ' . $user->mysite_wp_s2member_custom_fields['facebook'] . '
linkedin: ' . $user->mysite_wp_s2member_custom_fields['linkedin'] . '
info: ' . $user->mysite_wp_s2member_custom_fields['info'] . '
terms: ' . $user->mysite_wp_s2member_custom_fields['terms'] . '
And so on...');
}
?>
<?php
add_action ('ws_plugin__s2member_during_handle_profile_modifications', 'email_profile_changes');
function email_profile_changes($vars = array())
{
$user = new WP_User($vars['user_id']);
wp_mail ('me@mydomain.com', 'Profile update - ' . $user->user_login, '
Username: ' . $user->wp_s2member_custom_fields['Username'] . '
Email: ' . $user->wp_s2member_custom_fields['Email'] . '
First Name: ' . $user->wp_s2member_custom_fields['First Name'] . '
Last Name: ' . $user->wp_s2member_custom_fields['Last Name'] . '
middle: ' . $user->wp_s2member_custom_fields['middle'] . '
Suffix: ' . $user->wp_s2member_custom_fields['Suffix'] . '
Nickname: ' . $user->wp_s2member_custom_fields['Nickname'] . '
status: ' . $user->wp_s2member_custom_fields['status'] . '
Chapter: ' . $user->wp_s2member_custom_fields['Chapter'] . '
Grad: ' . $user->wp_s2member_custom_fields['Grad'] . '
Address: ' . $user->wp_s2member_custom_fields['Address'] . '
City: ' . $user->wp_s2member_custom_fields['City'] . '
State: ' . $user->wp_s2member_custom_fields['State'] . '
Zip: ' . $user->wp_s2member_custom_fields['Zip'] . '
country: ' . $user->wp_s2member_custom_fields['country'] . '
main_phone: ' . $user->wp_s2member_custom_fields['main_phone'] . '
secondary_phone_number: ' . $user->wp_s2member_custom_fields['secondary_phone_number'] . '
facebook: ' . $user->wp_s2member_custom_fields['facebook'] . '
linkedin: ' . $user->wp_s2member_custom_fields['linkedin'] . '
info: ' . $user->wp_s2member_custom_fields['info'] . '
terms: ' . $user->wp_s2member_custom_fields['terms'] . '
And so on...');
}
?>
$user = new WP_User($vars['user_id']);
print_r($user);
Users browsing this forum: No registered users and 0 guests