wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php


Lines:

1 to 33 of 33
<?php

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

/* class WP_REST_Widget_Types_Controller */
/* function WP_REST_Widget_Types_Controller::__construct() – Constructor. */
/* function WP_REST_Widget_Types_Controller::register_routes() – Registers the widget type routes. */
/* function WP_REST_Widget_Types_Controller::get_items_permissions_check() – Checks whether a given request has permission to read widget types. */
/* function WP_REST_Widget_Types_Controller::get_items() – Retrieves the list of all widget types. */
/* function WP_REST_Widget_Types_Controller::get_item_permissions_check() – Checks if a given request has access to read a widget type. */
/* function WP_REST_Widget_Types_Controller::check_read_permission() – Checks whether the user can read widget types. */
/* function WP_REST_Widget_Types_Controller::get_widget() – Gets the details about the requested widget. */
/* function WP_REST_Widget_Types_Controller::get_widgets() – Normalize array of widgets. */
/* function WP_REST_Widget_Types_Controller::get_item() – Retrieves a single widget type from the collection. */
/* function WP_REST_Widget_Types_Controller::prepare_item_for_response() – Prepares a widget type object for serialization. */
/* function WP_REST_Widget_Types_Controller::prepare_links() – Prepares links for the widget type. */
/* function WP_REST_Widget_Types_Controller::get_item_schema() – Retrieves the widget type’s schema, conforming to JSON Schema. */
/* function WP_REST_Widget_Types_Controller::encode_form_data() – An RPC-style endpoint which can be used by clients to turn user input in
a widget admin form into an encoded instance object. */
/* function WP_REST_Widget_Types_Controller::get_widget_preview() – Returns the output of WP_Widget::widget() when called with the provided
instance. Used by encode_form_data() to preview a widget. */
/* function WP_REST_Widget_Types_Controller::get_widget_form() – Returns the output of WP_Widget::form() when called with the provided
instance. Used by encode_form_data() to preview a widget’s form. */
/* function WP_REST_Widget_Types_Controller::render() – Renders a single Legacy Widget and wraps it in a JSON-encodable array. */
/* function WP_REST_Widget_Types_Controller::render_legacy_widget_preview_iframe() – Renders a page containing a preview of the requested Legacy Widget block. */
/* function WP_REST_Widget_Types_Controller::get_collection_params() – Retrieves the query params for collections. */
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      API Letters: ,,,,