Parsed: 123906

<?php

/**
 * REST API: WP_REST_Controller class
 *
 * @package WordPress
 * @subpackage REST_API
 * @since 4.7.0
 */

#[AllowDynamicProperties]
/* class WP_REST_Controller */
/* function WP_REST_Controller::register_routes() – Registers the routes for the objects of the controller. */
/* function WP_REST_Controller::get_items_permissions_check() – Checks if a given request has access to get items. */
/* function WP_REST_Controller::get_items() – Retrieves a collection of items. */
/* function WP_REST_Controller::get_item_permissions_check() – Checks if a given request has access to get a specific item. */
/* function WP_REST_Controller::get_item() – Retrieves one item from the collection. */
/* function WP_REST_Controller::create_item_permissions_check() – Checks if a given request has access to create items. */
/* function WP_REST_Controller::create_item() – Creates one item from the collection. */
/* function WP_REST_Controller::update_item_permissions_check() – Checks if a given request has access to update a specific item. */
/* function WP_REST_Controller::update_item() – Updates one item from the collection. */
/* function WP_REST_Controller::delete_item_permissions_check() – Checks if a given request has access to delete a specific item. */
/* function WP_REST_Controller::delete_item() – Deletes one item from the collection. */
/* function WP_REST_Controller::prepare_item_for_database() – Prepares one item for create or update operation. */
/* function WP_REST_Controller::prepare_item_for_response() – Prepares the item for the REST response. */
/* function WP_REST_Controller::prepare_response_for_collection() – Prepares a response for insertion into a collection. */
/* function WP_REST_Controller::filter_response_by_context() – Filters a response based on the context defined in the schema. */
/* function WP_REST_Controller::get_item_schema() – Retrieves the item’s schema, conforming to JSON Schema. */
/* function WP_REST_Controller::get_public_item_schema() – Retrieves the item’s schema for display / public consumption purposes. */
/* function WP_REST_Controller::get_collection_params() – Retrieves the query params for the collections. */
/* function WP_REST_Controller::get_context_param() – Retrieves the magical context param. */
/* function WP_REST_Controller::add_additional_fields_to_object() – Adds the values from additional fields to a data object. */
/* function WP_REST_Controller::update_additional_fields_for_object() – Updates the values of additional fields added to a data object. */
/* function WP_REST_Controller::add_additional_fields_schema() – Adds the schema from additional fields to a schema array. */
/* function WP_REST_Controller::get_additional_fields() – Retrieves all of the registered additional fields for a given object-type. */
/* function WP_REST_Controller::get_object_type() – Retrieves the object type this controller is responsible for managing. */
/* function WP_REST_Controller::get_fields_for_response() – Gets an array of fields to be included on the response. */
/* function WP_REST_Controller::get_endpoint_args_for_item_schema() – Retrieves an array of endpoint arguments from the item schema for the controller. */
/* function WP_REST_Controller::sanitize_slug() – Sanitizes the slug value. */