WooCommerce Code Reference

WC_Settings_Shipping extends WC_Settings_Page
in package

WC_Settings_Shipping.

Table of Contents

$id  : string
Setting page id.
$label  : string
Setting page label.
__construct()  : mixed
Constructor.
add_settings_page()  : array<string|int, mixed>|mixed
Add this page to settings.
get_id()  : string
Get settings page ID.
get_label()  : string
Get settings page label.
get_sections()  : array<string|int, mixed>
Get sections.
get_settings()  : array<string|int, mixed>
Get settings array.
output()  : mixed
Output the settings.
output_sections()  : mixed
Output sections.
save()  : mixed
Save settings.
instance_settings_screen()  : mixed
Show instance settings
output_shipping_class_screen()  : mixed
Handles output of the shipping class settings screen.
output_zones_screen()  : mixed
Handles output of the shipping zones page in admin.
zone_methods_screen()  : mixed
Show method for a zone
zones_screen()  : mixed
Show zones

Properties

Methods

add_settings_page()

Add this page to settings.

public add_settings_page(array<string|int, mixed> $pages) : array<string|int, mixed>|mixed
Parameters
$pages : array<string|int, mixed>

Current pages.

Return values
array<string|int, mixed>|mixed

get_settings()

Get settings array.

public get_settings([string $current_section = '' ]) : array<string|int, mixed>
Parameters
$current_section : string = ''

Current section.

Return values
array<string|int, mixed>