Support Forum

Different Paid Subscription Forum using Wishlist and SimplePress

19 Answers

New Answer

MP Mr Papa
Mr Papa
Member

where did you put them?  they would need to go in your wp theme functions.php file or a separate new plugin for wp…

also, to be clear, you say remove the wishlist level…  that’s not what I understood you wanted… I thought you were removing a user from a wishlist level… same for adding… hope you just misspoke…

SS Sukarto Sudjono
Sukarto Sudjono
Member

I put the code in functions.php in my child theme. It’s already run properly for add level.

Yes sorry I misspoke (english is not my primary language), I mean removing a user from a wishlist level. 

So, I would like repeat my question,

I find If I add level from inside wordpress wishlist member admin, the hook to add usergroup is not execute properly. It just run properly, if it is run from wishlist level registration URL that run by a user that sign up.

Is the hook is called only it’s called from client (outside the wordpress admin) or the hook is also called if we add/remove level from wordpress admin wishlist member?

thanks.

MP Mr Papa
Mr Papa
Member

It should work whether in wl admin or by a user registration… we use it both ways…  The ‘Add to Level’ or ‘Move to Level’ wl admin commands for  user from the admin…  same for remove…

SS Sukarto Sudjono
Sukarto Sudjono
Member

My team already make a wordpress plugin based on your code, so it is now working properly, add/remove wishlist level will make changes to simple press usergroups. 

thanks for your guidance :)

One more thing, how about an expired wishlist level, how you make someone that have an expired wishlist leve to automatically to remove access to simplepress forum?

wishlist don’t have any hook for expired level.

How you done that in here?

thanks.

MP Mr Papa
Mr Papa
Member

no, we just run a daily wp cron and check for expirations and if so, remove their membership…

yes, we run the code, plus the expire and a few other options from a separate plugin… but its pretty specific to our needs, ie not generic enough to release…