Skip to content

Template activation: rename new endpoints? #72581

@ellatrix

Description

@ellatrix

There's two new endpoints introduced: /wp_template and /wp_registered_template. The "old" templates endpoint is /templates so that's already taken. These new rest bases don't really fit other rest bases (underscore instead of dash), so I wonder if we should rename them. /wp_template is linked to the wp_template post type, and the convention is to do something like /templates (plural), but that's already taken. Perhaps the next best thing is to use /created-templates? And for registered templates it could be /registered-templates? Cc @youknowriad @mcsf in case you have an opinion on this.

Metadata

Metadata

Assignees

Labels

Needs Technical FeedbackNeeds testing from a developer perspective.[Feature] Templates APIRelated to API powering block template functionality in the Site Editor[Status] In ProgressTracking issues with work in progress

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions