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.

Creating users programmatically then email

Home Forums Community Forum Creating users programmatically then email

This topic contains 3 replies, has 2 voices. Last updated by  Mike (Volunteer Moderator) 3 years, 5 months ago.

Topic Author Topic
Posted: Friday Jul 26th, 2013 at 3:34 pm #54174

Hi s2member,

I know how I can create users programatically using wordpress wp_create_user function. However, I am lost at sending the membership email.

What s2member function should I call to trigger the free membership email? I am using authorized.net

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Saturday Jul 27th, 2013 at 11:05 am #54228
Moderator

What s2member function should I call to trigger the free membership email?

I believe this is email sent out automatically when you call that function, because s2Member connects itself to WP hooks/filters. However, if this is not working as expected, please let us know exactly which email you’re referring to. Screenshots if possible.

Posted: Sunday Jul 28th, 2013 at 2:59 am #54272

Hi Mike,

Thanks for your reply. It’s not being called automatically via wp_insert_user().

I found the way.

I have used c_ws_plugin__s2member_email_configs class then called new user notification function.

http://www.s2member.com/codex/stable/s2member/email_configs/c_ws_plugin__s2member_email_configs/
http://www.s2member.com/codex/stable/s2member/email_configs/c_ws_plugin__s2member_email_configs/#src_doc_new_user_notification()

Will share the script later.

Posted: Sunday Jul 28th, 2013 at 5:34 am #54284
Moderator

Perfect. That should do it. Thank you for the follow-up.

Also, I would really appreciate if you could do this for us :-)

Please register @ WordPress.org and rate s2Member®

NOTE: If you vote @ WordPress.org & LIKE us on Facebook, please reply back in the s2Member® Forums with a link to your nice comments (just to let us know). The company also has a way of saying thanks for this :-)

Please let me know if anything else comes up :-)

Viewing 3 replies - 1 through 3 (of 3 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.