Hi,
This may be a little beyond the scope of support, but would love some tips. I’m working on restricting access to the ‘send enquiry’ pop up form as per the guidance here: https://wpgeodirectory.com/making-popup-forms-require-login/
I’m using S2member and I want to restrict users from using the form if they’re a level 0 (free) subscriber. I’ve successfully altered the advised PHP code a little to make this work, BUT I also want the form to become accessible to level 0 subscribers IF more than 7 days have passed since the listing was first created.
After several hours of scouring the web and breaking my site with my limited understand of PHP, I wondered if someone here might have a suggestion for some code that would accomplish this?
P.S. to make it work with S2member, I replaced “if(!get_current_user_id()){” with “if(current_user_is(“s2member_level0”)){“.
Let me know if you have any thoughts!
Cheers,
Andrew