WooCommerce Code Reference

SetWCTaxRates extends Step

Class SetWCTaxRates

This class sets WooCommerce tax rates and extends the Step class.

Table of Contents

$locations  : array<string|int, mixed>
Tax rate locations.
$rates  : array<string|int, mixed>
Tax rates.
__construct()  : mixed
Constructor.
get_schema()  : array<string|int, mixed>
Get the schema for the step.
get_step_name()  : string
Get the name of the step.
prepare_json_array()  : array<string|int, mixed>
Prepare the JSON array for the step.

Properties

Methods

__construct()

Constructor.

public __construct(array<string|int, mixed> $rates, array<string|int, mixed> $locations) : mixed
Parameters
$rates : array<string|int, mixed>

Tax rates.

$locations : array<string|int, mixed>

Tax rate locations.

Return values
mixed

get_schema()

Get the schema for the step.

public static get_schema([int $version = 1 ]) : array<string|int, mixed>
Parameters
$version : int = 1

Optional version number of the schema.

Return values
array<string|int, mixed>The schema array.