Skip to content

Disable show_in_rest for template CPTs #36095

@TimothyBJacobs

Description

@TimothyBJacobs

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    REST API InteractionRelated to REST API[Feature] Templates APIRelated 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 milestone

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions