WordPress at Your Fingertips
function is not described

WC_REST_Taxes_Controller::create_item() public WC 1.0

Create a single tax.

{} It's a method of the class: WC_REST_Taxes_Controller{}

No Hooks.


WP_Error|WP_REST_Response. The response, or an error.


$WC_REST_Taxes_Controller = new WC_REST_Taxes_Controller();
$WC_REST_Taxes_Controller->create_item( $request );
$request(WP_REST_Request) (required)
Full details about the request.

Code of WC_REST_Taxes_Controller::create_item() WC 5.6.0

public function create_item( $request ) {
	$this->adjust_cities_and_postcodes( $request );

	return parent::create_item( $request );