Statistics: Posted by mnads — November 3rd, 2011, 11:44 pm
$user = new WP_User($vars['user_id']);
print_r($user);
Statistics: Posted by Cristián Lávaque — November 3rd, 2011, 9:41 pm
Statistics: Posted by mnads — November 3rd, 2011, 9:17 am
<?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...');
}
?>
Statistics: Posted by Cristián Lávaque — November 2nd, 2011, 11:55 pm
<?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...');
}
?>
Statistics: Posted by mnads — November 2nd, 2011, 6:32 pm
<?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');
}
?>
Statistics: Posted by mnads — November 1st, 2011, 1:06 am
Statistics: Posted by Cristián Lávaque — August 19th, 2011, 1:08 am
Statistics: Posted by man-O-media — August 18th, 2011, 5:11 pm
Cristián Lávaque wrote:
- Code:
<?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, '
Address: ' . $user->mysite_wp_s2member_custom_fields['street_address_1'] . '
' . $user->mysite_wp_s2member_custom_fields['street_address_2'] . '
City: ' . $user->mysite_wp_s2member_custom_fields['city'] . '
And so on...');
}
?>
Statistics: Posted by man-O-media — August 18th, 2011, 1:16 pm
Statistics: Posted by Cristián Lávaque — March 19th, 2011, 10:19 pm
Wants User Listing: ' . ($user->mysite_wp_s2member_custom_fields['wants_user_listing'] == 1 ? 'Yes' : 'No') . '
Statistics: Posted by man-O-media — March 19th, 2011, 9:14 pm
Wants User Listing: ' . ($user->mysite_wp_s2member_custom_fields['wants_user_listing'] == 1 ? 'Yes' : 'No') . '
Statistics: Posted by Cristián Lávaque — March 19th, 2011, 4:22 pm
Statistics: Posted by man-O-media — March 19th, 2011, 3:45 pm
<?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, '
First Name: ' . $user->first_name . '
Last Name: ' . $user->last_name . '
Address: ' . $user->mysite_wp_s2member_custom_fields['street_address_1'] . '
' . $user->mysite_wp_s2member_custom_fields['street_address_2'] . '
City: ' . $user->mysite_wp_s2member_custom_fields['city'] . '
And so on...');
}
?>
Statistics: Posted by Cristián Lávaque — March 19th, 2011, 12:02 pm
Statistics: Posted by man-O-media — March 19th, 2011, 10:41 am
Statistics: Posted by man-O-media — March 19th, 2011, 1:03 am
<?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, '
First Name: ' . $user->first_name . '
Last Name: ' . $user->last_name . '
Address: ' . $user->street_address_1 . '
' . $user->street_address_2 . '
City: ' . $user->city . '
And so on...');
}
?>
Statistics: Posted by Cristián Lávaque — March 18th, 2011, 11:15 pm
<?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"]);
// print_r($user);
// print_r($user->home_phone);
wp_mail ('me@mydomain.com', 'Subject ( ' . $user->user_login . ' just updated their Profile )', 'Message Body goes here.' );
}
?>
<?php
add_action("ws_plugin__s2member_during_handle_profile_modifications", "email_profile_changes");
function email_profile_changes(){
global $current_user;
get_currentuserinfo();
wp_mail("me@mydomain.com", $current_user->user_login . " has updated their membership profile", " User Login: " . $current_user->user_login . "\n" . " User ID: " . $current_user->ID . "\n" . ' First Name: ' . $current_user->user_firstname . "\n" . ' Last Name: ' . $current_user->user_lastname . "\n" . ' User email: ' . $current_user->user_email );
}
?>
Statistics: Posted by man-O-media — March 18th, 2011, 10:25 pm
Statistics: Posted by Cristián Lávaque — March 18th, 2011, 7:44 pm
Statistics: Posted by man-O-media — March 18th, 2011, 7:11 pm
Statistics: Posted by Cristián Lávaque — March 18th, 2011, 12:15 am
Statistics: Posted by man-O-media — March 17th, 2011, 7:01 pm
Statistics: Posted by Cristián Lávaque — March 17th, 2011, 6:26 pm