- This topic has 3 replies, 4 voices, and was last updated 7 years, 2 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › How to programatically protect post?
I originally wanted to automatically protect my custom post types but it seems this isn’t possible. Next option is to set the post protection when a new post is created but how would I do this? The post protection status doesn’t seem to be stored anywhere in the post meta and I can’t see any hooks/filters that will do it. Is this possible to do?
Hi,
The post protection status doesn’t seem to be stored anywhere in the post meta and I can’t see any hooks/filters that will do it. Is this possible to do?
No, currently that is not possible with our plugin.
I was also looking into where and how this info is stored. Where could I find this info in the database?
Thanks,
Uwe.
It should be in the “swpm_membership_tbl” DB table.