WC_REST_Setting_Options_V2_Controller
REST API Setting Options controller class.
Description Description
Source Source
File: includes/rest-api/Controllers/Version2/class-wc-rest-setting-options-v2-controller.php
Methods Methods
- allowed_setting_keys — Callback for allowed keys for each setting response.
- batch_items — Bulk create, update and delete items.
- cast_image_width — For image_width, Crop can return "0" instead of false -- so we want to make sure we return these consistently the same we accept them.
- filter_setting — Filters out bad values from the settings array/filter so we only return known values via the API.
- get_countries_and_states — Returns a list of countries and states for use in the base location setting.
- get_group_settings — Get all settings in a group.
- get_item — Return a single setting.
- get_item_schema — Get the settings schema, conforming to JSON Schema.
- get_items — Return all settings in a group.
- get_items_permissions_check — Makes sure the current user has access to READ the settings APIs.
- get_setting — Get setting data.
- is_setting_type_valid — Boolean for if a setting type is a valid supported setting type.
- prepare_item_for_response — Prepare a single setting object for response.
- prepare_links — Prepare links for the request.
- register_routes — Register routes.
- update_item — Update a single setting in a group.
- update_items_permissions_check — Makes sure the current user has access to WRITE the settings APIs.