- This topic has 2 replies, 3 voices, and was last updated 6 years ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › fix to user "auto downgrade membership" user tweak
The auto_downgrade_membership user tweak in the documentation seems to be a line missing of code, I needed to add this as otherwise you don’t have a $user defined when checking if subscription is expired.
$user=SwpmMemberUtils::get_user_by_id($mId);
add this somewhere above the line:
if(SwpmUtils::is_subscription_expired($user) == true){
I added it directly before the ‘if’ since there isn’t any need to grab the data if you don’t fall into that branch of code.
Hi, thank you reaching out to us. I have submitted a message to the developers to investigate further your findings.
Thank you
Thank you. I have updated the example code in the following page:
https://simple-membership-plugin.com/user-submitted-tweaks-simple-membership/