Hello @buddycheckuk
If you want all posts to be accessible to logged-in users only, you can navigate to wp-admin > ultimate member > settings > access > Restriction Content and change “Global site access” setting to “Site accessible to Logged In Users“.
You can exclude pages/posts from this global access restriction by including URL on “Exclude the following URLs ” setting.
Hi,
I did that but someone from outside of my members still accessed the post and liked it. I have no idea how they have done that with the settings exactly how you described.
Hi @buddycheckuk
Sorry for the late response.
You can try copying the post meta of the post that has your content restriction settings ‘um_content_restriction’ and then use the save_post action hook to insert the post meta:
update_post_meta( $post_id, "um_content_restriction", $content_restrictions );
The um_content_restriction has serialized data that you can copy from the post that has your desired settings and save to the new post.
Regards.
Hey there!
This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.
Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. 🙂
Regards,