Parsed: 129852

<?php

/**
 * REST API: WP_REST_Templates_Controller class
 *
 * @package    WordPress
 * @subpackage REST_API
 * @since 5.8.0
 */

/* class WP_REST_Templates_Controller */
/* function WP_REST_Templates_Controller::__construct() – Constructor. */
/* function WP_REST_Templates_Controller::register_routes() – Registers the controllers routes. */
/* function WP_REST_Templates_Controller::get_template_fallback() – Returns the fallback template for the given slug. */
/* function WP_REST_Templates_Controller::permissions_check() – Checks if the user has permissions to make the request. */
/* function WP_REST_Templates_Controller::_sanitize_template_id() – 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’. */
/* function WP_REST_Templates_Controller::get_items_permissions_check() – Checks if a given request has access to read templates. */
/* function WP_REST_Templates_Controller::get_items() – Returns a list of templates. */
/* function WP_REST_Templates_Controller::get_item_permissions_check() – Checks if a given request has access to read a single template. */
/* function WP_REST_Templates_Controller::get_item() – Returns the given template */
/* function WP_REST_Templates_Controller::update_item_permissions_check() – Checks if a given request has access to write a single template. */
/* function WP_REST_Templates_Controller::update_item() – Updates a single template. */
/* function WP_REST_Templates_Controller::create_item_permissions_check() – Checks if a given request has access to create a template. */
/* function WP_REST_Templates_Controller::create_item() – Creates a single template. */
/* function WP_REST_Templates_Controller::delete_item_permissions_check() – Checks if a given request has access to delete a single template. */
/* function WP_REST_Templates_Controller::delete_item() – Deletes a single template. */
/* function WP_REST_Templates_Controller::prepare_item_for_database() – Prepares a single template for create or update. */
/* function WP_REST_Templates_Controller::prepare_item_for_response() – Prepare a single template output for response */
/* function WP_REST_Templates_Controller::prepare_links() – Prepares links for the request. */
/* function WP_REST_Templates_Controller::get_available_actions() – Get the link relations available for the post and current user. */
/* function WP_REST_Templates_Controller::get_collection_params() – Retrieves the query params for the posts collection. */
/* function WP_REST_Templates_Controller::get_item_schema() – Retrieves the block type’ schema, conforming to JSON Schema. */