SetWCTaxRates
extends Step
in package
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
$locations
Tax rate locations.
private
array<string|int, mixed>
$locations
$rates
Tax rates.
private
array<string|int, mixed>
$rates
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.get_step_name()
Get the name of the step.
public
static get_step_name() : string
Return values
string —prepare_json_array()
Prepare the JSON array for the step.
public
prepare_json_array() : array<string|int, mixed>