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.

Hook After Level Upgrade or New Regristration

Home Forums Community Forum Hook After Level Upgrade or New Regristration

This topic contains 1 reply, has 2 voices. Last updated by  Raam Dev 4 years, 3 months ago.

Topic Author Topic
Posted: Thursday Sep 20th, 2012 at 2:04 pm #25979

Hi,

This question is a continuation of a topic that it’s closed now: http://www.s2member.com/forums/topic/hook-after-level-upgrade-or-new-regristration/

The ws_plugin__s2member_during_paypal_notify_during_subscr_signup_w_update_vars hook seems to work well with new registrations but not with those users who are already registered on the site and want to upgrade their level.

We are trying to have a fixed EOT Time for membership renewals and new registrations on the site. The hook ws_plugin__s2member_during_paypal_notify_during_subscr_signup_w_update_vars has been working with those users who register on the site for the first time, but not with those who are already registered but want to upgrade their level (for those, the EOT is empty).

Any idea why this is happening? An alternative hook that can be used?

Thank you very much.

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Thursday Sep 20th, 2012 at 10:47 pm #26009
Raam Dev
Username: Raam
Staff Member

As Jason mentioned in the other post, what’s most likely happening is that you’re setting the EOT and then as part of the upgrade process s2Member is deleting the EOT. So, you need to make sure you’re updating it after that point.

Perhaps try ws_plugin__s2member_during_paypal_return_after_subscr_signup_w_update_vars. You can also look through the code to see what makes the most sense.

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.