latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Email sent when manual upgrading member

Home Forums Community Forum Email sent when manual upgrading member

This topic contains 1 reply, has 2 voices. Last updated by  Gary Wright 3 years, 9 months ago.

Topic Author Topic
Posted: Thursday Jan 31st, 2013 at 1:15 pm #40165
Loretta
Username: companions

I need to have s2member send an email when I manually upgrade a member from 0 to level 1

Support suggested that I create a folder called mu-plugins in the wp-content area then create a php file with the following :

user_email;
       $subject = "Role changed: ".$site_url."";
       $message = "Hello " .$user_info->display_name . " your role has changed on ".$site_url.", congratulations you are now an " . $new_role;
       wp_mail($to, $subject, $message);
}
add_action( 'set_user_role', 'user_role_update', 10, 2);

I saved this in a file and called it role_change.php

This works but the problem is that it also sends this information when someone signs up for a new account.

What do I need to modify for this to only be sent when I manually upgrade the role from level 0 to level 1?

I would appreciate any help I can get on this…. desperate!

  • This topic was modified 3 years, 11 months ago by  Loretta.
  • This topic was modified 3 years, 11 months ago by  Loretta.
  • This topic was modified 3 years, 11 months ago by  Eduan. Reason: Moved to the customer support forum
  • This topic was modified 3 years, 4 months ago by  Loretta.

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Tuesday Apr 9th, 2013 at 8:00 pm #46955
Gary Wright
Username: garyw

Could really do with something like this.

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.