WP_REST_Widget_Types_Controller::get_items_permissions_check()
Checks whether a given request has permission to read widget types.
Checks whether a given request has permission to read widget types.
Gets the details about the requested widget.
Returns the output of WP_Widget::form() when called with the provided instance. Used by encode_form_data() to preview a widget’s form.
Returns the output of WP_Widget::widget() when called with the provided instance. Used by encode_form_data() to preview a widget.
Normalize array of widgets.
Prepares a widget type object for serialization.
Prepares links for the widget type.
Registers the widget type routes.
Core class to access widgets via the REST API.
Widgets controller constructor.