Custom Posts / Block editor / Rest API / show_in_rest
-
When the REST API came along I noticed that I needed to set ‘show_in_rest’ => true when registering a Custom Post, just to get it to work with the block editor. I just discovered that this means that the info in those CP’s is exposed to the outside world through the REST API. This is highly undesirable, as some of the exposed info is for logged-in users only. Therefore I had to switch back to ‘show_in_rest’ => false
Is there another way of getting CP’s to work with the block editor, without having the info exposed to the outside world through the REST API?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Custom Posts / Block editor / Rest API / show_in_rest’ is closed to new replies.