Limit the endpoints to admins and WP Core

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

Viewing 1 post (of 1 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!

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.