Simple Membership Plugin › Forums › Simple Membership Plugin › Account Status "Pending" After Monthly Renewal
- This topic has 18 replies, 3 voices, and was last updated 4 years, 11 months ago by
admin.
-
AuthorPosts
-
March 13, 2021 at 5:13 am #22259
Hactor
ParticipantHi Team,
I have a monthly subscription in my website.
But the user Account status changed from “Active” to “Pending” after each renewal.
How can I stop changing it to “Pending” and keep them “Active” after renewal?–
ThanksMarch 14, 2021 at 4:33 am #22260mbrsolution
ModeratorHi, what have you selected under WP Membership -> Settings -> General Settings -> Default Account Status?
Thank you
March 14, 2021 at 5:03 am #22261Hactor
ParticipantHi,
It’s set as “Pending”.
–
ThanksMarch 14, 2021 at 5:31 am #22262mbrsolution
ModeratorThen it is safe to say that this is the reason why the account is set to Pending after the renewal.
Kind regards
March 15, 2021 at 5:46 am #22265Hactor
ParticipantHi,
I have a scenario,
When User 1st create the account on my website at that time, I want to manually approve them that’s why I have added them as pending.
But after 1st approval on each renewal, I don’t want to re-approve them. I want to keep them Active.Is there any workaround for such a scenario?
–
ThanksMarch 15, 2021 at 10:00 pm #22267mbrsolution
ModeratorHi, unfortunately that feature is not currently available.
Kind regards
March 16, 2021 at 6:29 am #22274Hactor
ParticipantIs there any workaround available?
March 17, 2021 at 1:55 am #22277admin
KeymasterWe will need to add a filter hook for this so for your site you can override this behavior.
I have added a filter hook to the core code which will go out with the next release.
You can download a zip file from the github repository now if you want to go ahead and use it right now:
https://github.com/wp-insider/simple-membership/archive/master.zipBelow is an example snippet of code showing how to use this new filter hook. You can add this code to your theme’s functions.php file to apply the override for your site.
add_filter('swpm_account_status_for_subscription_start_date_update', 'swpm_override_account_status_for_sub_renew'); function swpm_override_account_status_for_sub_renew($account_status){ $account_status = 'active'; return $account_status; }April 21, 2021 at 3:46 am #22469Hactor
ParticipantHi,
When will be next release come and include this solution?
–
ThanksApril 23, 2021 at 4:50 am #22475Hactor
ParticipantHi Team,
I have used your shared code and still having the issue.
can you provide the permeant solution for the same?–
ThanksApril 28, 2021 at 5:12 am #22487Hactor
ParticipantHey Hi
Is there any update for the same?
May 8, 2021 at 8:09 am #22557Hactor
ParticipantHi Team,
are you able to fix the issue or do I need to raise the PAID support ticket?
Looking forward to a prompt reply!
–
ThanksMay 8, 2021 at 9:24 pm #22559mbrsolution
ModeratorHi, just to confirm with you. Are you running the latest version 4.0.5?
May 8, 2021 at 10:20 pm #22561Hactor
ParticipantYee, I am using 4.0.5
May 9, 2021 at 8:29 am #22562Hactor
ParticipantDo you need any other information from my end?
-
AuthorPosts
- You must be logged in to reply to this topic.