WooCommerce Code Reference

ExportWCShipping 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

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_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.