Method: Requesting this endpoint for a template like ‘twentytwentytwo//home’ requires using a path like /wp/v2/templates/twentytwentytwo//home. There are special cases when WordPress routing corrects the name to contain only a single slash like ‘twentytwentytwo/home’.
Source: wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php:160
Method: Get the link relations available for the post and current user.
Source: wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php:712
Method: Retrieves the query params for the posts collection.
Source: wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php:736
Method: Retrieves the block type’ schema, conforming to JSON Schema.
Source: wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php:762
Method: Prepare a single template output for response
Source: wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php:569
Method: Prepares links for the request.
Source: wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php:687
Method: Checks if a given request has access to read a single template.
Source: wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php:228
Method: Returns the given template
Source: wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php:240
Method: Checks if a given request has access to write a single template.
Source: wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php:262
Method: Updates a single template.
Source: wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php:274
Method: Checks if a given request has access to create a template.
Source: wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php:343
Class: Base Templates REST API Controller.
Source: wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php:17
Method: Creates a single template.
Source: wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php:355
Source: wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php:34
Method: Checks if a given request has access to delete a single template.
Source: wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php:407
Method: Registers the controllers routes.
Source: wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php:46
Method: Deletes a single template.
Source: wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php:419
Method: Checks if the user has permissions to make the request.
Source: wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php:128
Method: Prepares a single template for create or update.
Source: wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php:480
Method: Checks if a given request has access to read templates.
Source: wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php:187
Method: Returns a list of templates.
Source: wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php:199