-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Disable show_in_rest for template CPTs #36095
Copy link
Copy link
Closed
Labels
REST API InteractionRelated to REST APIRelated to REST API[Feature] Templates APIRelated to API powering block template functionality in the Site EditorRelated to API powering block template functionality in the Site Editor[Release] Do Not PuntUsed to indicate the issue or pull request must not be moved from the assigned milestoneUsed to indicate the issue or pull request must not be moved from the assigned milestone
Description
The templates CPTs are currently marked as show_in_rest and has a custom controller specified. The templates controller, however, does not follow the patterns for CPT controllers. Most importantly, the route URLs are completely different.
Before the CPTs get merged, we should make sure to turn off that show_in_rest and instead register the routes manually on rest_api_init.
| 'show_in_rest' => true, |
| 'show_in_rest' => true, |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
REST API InteractionRelated to REST APIRelated to REST API[Feature] Templates APIRelated to API powering block template functionality in the Site EditorRelated to API powering block template functionality in the Site Editor[Release] Do Not PuntUsed to indicate the issue or pull request must not be moved from the assigned milestoneUsed to indicate the issue or pull request must not be moved from the assigned milestone
Type
Fields
Give feedbackNo fields configured for issues without a type.