Hello,
I want to check the membership membership that has expired and change it to a regular member.
To do this, it is necessary to conditionally check and modify the field of the User data type.
The fields I use are as follows:
- Membership: Membership members/general members
- membership_end_date: the date your membership ends
The user’s membership level includes regular members and membership members.
When you become a membership member, record the user’s membership deadline through the field named membership_end_date.
And when the user’s membership deadline is over, he has to change his membership rating to a regular member again.
I’ve been using social login api recently, so I have a member whose session is maintained, so I can visit my website without having to log in every time.
As a result, checking membership deadlines in the login workflow was useless.