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.

Force List Server to refresh

Home Forums Community Forum Force List Server to refresh

This topic contains 1 reply, has 2 voices. Last updated by  Cristián Lávaque 3 years, 10 months ago.

Topic Author Topic
Posted: Thursday Feb 28th, 2013 at 5:18 pm #43435

Hi,

What I’m trying to achieve is when a new free subscriber logs into the Member area for the first time they get upgraded to a Level 1 automatically (instead of email double opt in) and also get added to my Mailchimp mailing list.

I’ve achieved the first part easily enough using the following PHP code in a shortcode on the Member Area page:

$user_id = 2MEMBER_CURRENT_USER_ID;
$user_level = S2MEMBER_CURRENT_USER_ACCESS_LEVEL;
if($user_level == 0)
{
   $user = new WP_User($user_id);
   $user->set_role("s2member_level1");
}

Problem is the second part – I have setup Mailchimp to add new level 1s to my mailing list but it is not triggering. How do I force the system to process configured list servers manually in the code above after changing the role?

Regards

Lee

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Saturday Mar 2nd, 2013 at 5:51 am #43584

Hi Lee.

Did you check the settings to automate list transitions? [hilite path]Dashboard -› s2Member® -› API / List Servers -› Automate Unsubscribes/Opt-Outs[/hilite]

Also, wouldn’t it work for you to have users register for free at Level 1 directly? You can use the free registration pro-form for this. [hilite path]Dashboard -› s2Member® -› PayPal® Pro Forms -› Free Registration Forms[/hilite]

I hope that helps. :)

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.