Title: Automatic Content Restriction on Posts
Last modified: March 19, 2022

---

# Automatic Content Restriction on Posts

 *  Resolved [Chris Platts](https://wordpress.org/support/users/buddycheckuk/)
 * (@buddycheckuk)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/automatic-content-restriction-on-posts/)
 * I want all posts to only be seen by logged in users on my site.
 * I’ve been able to put the content restriction on after the post has been submitted.
   But wondered if there was a way to do it automatically so I don’t have to keep
   going in to each post individually.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [Aswin Giri](https://wordpress.org/support/users/aswingiri/)
 * (@aswingiri)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/automatic-content-restriction-on-posts/#post-15478229)
 * Hello [@buddycheckuk](https://wordpress.org/support/users/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.
 *  Thread Starter [Chris Platts](https://wordpress.org/support/users/buddycheckuk/)
 * (@buddycheckuk)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/automatic-content-restriction-on-posts/#post-15478319)
 * 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.
 *  Plugin Support [Ultimate Member Support](https://wordpress.org/support/users/ultimatemembersupport/)
 * (@ultimatemembersupport)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/automatic-content-restriction-on-posts/#post-15596007)
 * Hi [@buddycheckuk](https://wordpress.org/support/users/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.
 *  Plugin Support [Ultimate Member Support](https://wordpress.org/support/users/ultimatemembersupport/)
 * (@ultimatemembersupport)
 * [4 years ago](https://wordpress.org/support/topic/automatic-content-restriction-on-posts/#post-15673362)
 * 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,

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Automatic Content Restriction on Posts’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Ultimate Member Support](https://wordpress.org/support/users/ultimatemembersupport/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/automatic-content-restriction-on-posts/#post-15673362)
 * Status: resolved