Hi Herve,
In your case, you will need to store the expiration time(when you want to the user account to expire in meta entry) and then in the remove_featured() you will need to check against that time.The reason is, you can determine the allowed time at the time of marking featured(as the user account is available) but the same is not true for removing.
The current strategy will not work as it keeps when the user account was marked featured. In this case you can not differentiate between two account.
I will share some code later to allow you do the same
If you have made modifications to Expirable Membership, Please share on pastebin and link me.
Thank you
BrajeshHi Brajesh,
Ah ok thank you for all these details.
I shared the current code:
https://pastebin.com/13kNA2x8I would have liked to have a different time depending on the role WP if I activate manually clicking on the button “set featured”. If it’s too complicated, I give up this option (or I’ll put a common time for any manual activation)
RegardsHi Herve,
I had a look at the shared code. It is incomplete. You have only shared part of the class. Please share the complete code for expiring members as well as assigning them too.Hi Herve,
I will be looking at your code this weekend and updating you.Thank you
BrajeshHi Herve,
I am sorry, I have been skipping on it. I will spend some time tonight or tomorrow and assist you.
Thank you
Brajesh
The topic ‘ [Resolved] paiement with featured Member’ is closed to new replies.