Make custom post type editable but not accessible from REST


When registering af custom post type I have succeeded in making it both accessible and editable through rest by setting the ‘show_in_rest’ argument to true.

However, it is not a public post type, so all I need is to make it editable by rest (using nonce) but not publicly accessible through REST.

How would I go about this?

, Rasmus B 3 years 2020-06-08T04:10:31-05:00 0 Answers 92 views 0

Leave an answer