WordPress show_in_rest: Expose Custom Post Types and Meta to the REST AP ...
show_in_rest and register_post_meta(): custom post types and meta in the REST API and the block editor A custom post type registered without show_in_rest has no REST endpoint and opens in the classic editor: the block editor loads and saves posts through the REST API. The same goes for meta: a field is part of the…