- This topic has 2 replies, 2 voices, and was last updated 1 year 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 › Protect PHP forms
I have set up a members area where I have fully protected some pages.
On these pages, there are links to PHP forms, but they are not protected.
How do I ensure that these PHP forms are also protected?
Example: [https://wcf.de/en/lic/License-EN_RU_Europe_2025.php]
Our plugin can protect a page if it is part of the WordPress system. So, to apply general protection using our plugin, the form you’re referring to must be embedded on a WordPress page.
If embedding it on a WordPress page isn’t possible, the alternative is to implement custom code that checks whether a member is logged in and applies protection accordingly. This custom implementation would need to be done on your end.
Our plugin provides helper functions for checking login status. You can refer to the following page for some useful examples and functions to assist in building your own solution:
https://simple-membership-plugin.com/simple-membership-miscellaneous-php-tweaks/
I understand that I can implement custom code that checks whether a member is logged in, and applies protection accordingly.
I just don’t know where to implement the code.
The plugin-protected page contains links to the corresponding PHP forms.
Do I have to enter the code in the PHP form or somewhere else?
I would be very grateful for your advice.