Limit the endpoints to admins and WP Core

Support MB REST API Limit the endpoints to admins and WP Core

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #48261
    Roderick GeisRoderick Geis
    Participant

    This is a REST API and MB question.

    Is there a way to make a custom post type only visible to the author and administrators?

    https://pastebin.com/0Y0p7gzv

    Out of the box, when a user creates a post from the custom post type, it is published and visible to everyone. However, this is something that I am trying to avoid given that I am going from a submission from WS Form and converting it into a custom post.

    The way that I did it works, but because WS Form requires MB REST API, then it would break the plugin's functionality.

    Thank you!

    #48268
    PeterPeter
    Moderator

    Hello Roderick,

    Meta Box doesn't support an option to limit the user to view the post type. You can use a third-party plugin to restrict access to a post type as well, for example https://wordpress.org/plugins/restrict-user-access/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.