WP_REST_Widget_Types_Controller
Methods
1 to 15 of 15
- WP_REST_Widget_Types_Controller::check_read_permission() – Checks whether the user can read widget types.
- 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.
- WP_REST_Widget_Types_Controller::get_collection_params() – Retrieves the query params for collections.
- WP_REST_Widget_Types_Controller::get_item_permissions_check() – Checks if a given request has access to read a widget type.
- WP_REST_Widget_Types_Controller::get_item_schema() – Retrieves the widget type’s schema, conforming to JSON Schema.
- WP_REST_Widget_Types_Controller::get_item() – Retrieves a single widget type from the collection.
- WP_REST_Widget_Types_Controller::get_items_permissions_check() – Checks whether a given request has permission to read widget types.
- WP_REST_Widget_Types_Controller::get_items() – Retrieves the list of all widget types.
- 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.
- 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.
- WP_REST_Widget_Types_Controller::get_widget() – Gets the details about the requested widget.
- WP_REST_Widget_Types_Controller::get_widgets() – Normalize array of widgets.
- WP_REST_Widget_Types_Controller::prepare_links() – Prepares links for the widget type.
- WP_REST_Widget_Types_Controller::render_legacy_widget_preview_iframe() – Renders a page containing a preview of the requested Legacy Widget block.
- WP_REST_Widget_Types_Controller::render() – Renders a single Legacy Widget and wraps it in a JSON-encodable array.