WC_REST_Taxes_V1_Controller
REST API Taxes controller class.
Description Description
Source Source
File: includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php
Methods Methods
- add_tax_rate_locales — Add tax rate locales to the response array.
- batch_items_permissions_check — Check if a given request has access batch create, update and delete items.
- create_item — Create a single tax.
- create_item_permissions_check — Check if a given request has access create taxes.
- create_or_update_tax — Take tax data from the request and return the updated or newly created rate.
- delete_item — Delete a single tax.
- delete_item_permissions_check — Check if a given request has access delete a tax.
- get_collection_params — Get the query params for collections.
- get_item — Get a single tax.
- get_item_permissions_check — Check if a given request has access to read a tax.
- get_item_schema — Get the Taxes schema, conforming to JSON Schema.
- get_items — Get all taxes.
- get_items_permissions_check — Check whether a given request has permission to read taxes.
- prepare_item_for_response — Prepare a single tax output for response.
- prepare_links — Prepare links for the request.
- register_routes — Register the routes for taxes.
- update_item — Update a single tax.
- update_item_permissions_check — Check if a given request has access update a tax.