Closed gin0115 closed 2 years ago
Better support WP Rest.
https://developer.wordpress.org/rest-api%2Fextending-the-rest-api%2Fadding-rest-api-support-for-custom-content-types%2F/#:~:text=Registering%20A%20Custom%20Post%20Type%20With%20REST%20API,add%20a%20route%20in%20the%20wp%2Fv2%20namespace.%201
Auto implement rest_route_for_post and rest_route_for_term if set to show in rest.
Might be worth adding in a way to override a base asumption of slug/id
Better support WP Rest.
https://developer.wordpress.org/rest-api%2Fextending-the-rest-api%2Fadding-rest-api-support-for-custom-content-types%2F/#:~:text=Registering%20A%20Custom%20Post%20Type%20With%20REST%20API,add%20a%20route%20in%20the%20wp%2Fv2%20namespace.%201
Auto implement rest_route_for_post and rest_route_for_term if set to show in rest.
Might be worth adding in a way to override a base asumption of slug/id