WC_REST_Controller
Abstract Rest Controller Class
Description Description
Source Source
File: includes/rest-api/Controllers/Version3/class-wc-rest-controller.php
Methods Methods
- add_additional_fields_schema — Add the schema from additional fields to an schema array.
- add_meta_query — Add meta query.
- adjust_wp_5_5_datatype_compatibility — Change datatypes `date-time` to string, and `mixed` to composite of all built in types. This is required for maintaining forward compatibility with WP 5.5 since custom post types are not supported anymore.
- batch_items — Bulk create, update and delete items.
- check_batch_limit — Check batch limit.
- get_endpoint_args_for_item_schema — Compatibility functions for WP 5.5, since custom types are not supported anymore.
- get_fields_for_response — Gets an array of fields to be included on the response.
- get_normalized_rest_base — Get normalized rest base.
- get_public_batch_schema — Get the batch schema, conforming to JSON Schema.
- validate_setting_checkbox_field — Validate checkbox based settings.
- validate_setting_image_width_field — Validate image_width based settings.
- validate_setting_multiselect_field — Validate multiselect based settings.
- validate_setting_radio_field — Validate radio based settings.
- validate_setting_select_field — Validate select based settings.
- validate_setting_text_field — Validate a text value for a text based setting.
- validate_setting_textarea_field — Validate textarea based settings.