WooCommerce Code Reference

SetSiteOptions extends Step
in package

Set site options step.

Table of Contents

$meta_values  : array<string|int, mixed>
Meta values for the step.
$options  : array<string|int, mixed>
Site options.
__construct()  : mixed
Constructor.
get_json_array()  : mixed
Get the JSON array for the step.
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 step for JSON serialization.
set_meta_values()  : void
Set meta values for the step.

Properties

Methods

__construct()

Constructor.

public __construct([array<string|int, mixed> $options = array() ]) : mixed
Parameters
$options : array<string|int, mixed> = array()

site options.

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

schema version.

Return values
array<string|int, mixed>schema for the step

prepare_json_array()

Prepare the step for JSON serialization.

public prepare_json_array() : array<string|int, mixed>
Return values
array<string|int, mixed>array representation of the step

set_meta_values()

Set meta values for the step.

public set_meta_values(array<string|int, mixed> $meta_values) : void
Parameters
$meta_values : array<string|int, mixed>

The meta values.

Return values
void