ExportWCShipping
in package
implements
StepExporter, HasAlias
Class ExportWCShipping
Exports WooCommerce shipping settings and implements the StepExporter interface.
Interfaces, Classes and Traits
- StepExporter
- HasAlias
Table of Contents
- export() : array<string|int, mixed>
- Export WooCommerce shipping settings.
- get_alias() : string
- Get the alias.
- get_description() : string
- Return description used in the frontend.
- get_label() : string
- Return label used in the frontend.
- get_step_name() : string
- Get the name of the step.
- get_steps_for_classes_and_terms() : array<string|int, mixed>
- Retrieve shipping classes and related terms.
- get_terms() : array<string|int, mixed>
- Retrieve term data based on provided classes.
- get_step_for_local_pickup() : SetSiteOptions
- Retrieve local pickup settings.
- get_steps_for_locations() : array<string|int, mixed>
- Retrieve shipping zone locations.
- get_steps_for_methods_and_options() : array<string|int, mixed>
- Retrieve shipping methods and options.
- get_steps_for_zones() : array<string|int, mixed>
- Retrieve shipping zones from the database.
Methods
export()
Export WooCommerce shipping settings.
public
export() : array<string|int, mixed>
Return values
array<string|int, mixed> — Array of RunSql|SetSiteOptions instances.get_alias()
Get the alias.
public
get_alias() : string
Return values
string —get_description()
Return description used in the frontend.
public
get_description() : string
Return values
string —get_label()
Return label used in the frontend.
public
get_label() : string
Return values
string —get_step_name()
Get the name of the step.
public
get_step_name() : string
Return values
string —get_steps_for_classes_and_terms()
Retrieve shipping classes and related terms.
protected
get_steps_for_classes_and_terms() : array<string|int, mixed>
Return values
array<string|int, mixed> — Steps for shipping classes and terms.get_terms()
Retrieve term data based on provided classes.
protected
get_terms(array<string|int, mixed> $classes) : array<string|int, mixed>
Parameters
- $classes : array<string|int, mixed>
-
List of classes with term IDs.
Return values
array<string|int, mixed> — Retrieved term data.get_step_for_local_pickup()
Retrieve local pickup settings.
private
get_step_for_local_pickup() : SetSiteOptions
Return values
SetSiteOptions — Local pickup settings step.get_steps_for_locations()
Retrieve shipping zone locations.
private
get_steps_for_locations() : array<string|int, mixed>
Return values
array<string|int, mixed> — Steps for shipping zone locations.get_steps_for_methods_and_options()
Retrieve shipping methods and options.
private
get_steps_for_methods_and_options() : array<string|int, mixed>
Return values
array<string|int, mixed> — Steps for shipping methods and options.get_steps_for_zones()
Retrieve shipping zones from the database.
private
get_steps_for_zones() : array<string|int, mixed>