WC_REST_Taxes_V1_Controller::create_or_update_tax( WP_REST_Request $request, stdClass|null $current = null )

Take tax data from the request and return the updated or newly created rate.


Description Description


Parameters Parameters

$request

(Required) Full details about the request.

$current

(Optional) Existing tax object.

Default value: null


Top ↑

Return Return

(object)


Top ↑

Source Source

File: includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.