• Resolved Chris Platts

    (@buddycheckuk)


    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

    (@aswingiri)

    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.

    Thread Starter Chris Platts

    (@buddycheckuk)

    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

    (@ultimatemembersupport)

    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.

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    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.