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!