PHP Class WC_Settings_Shipping

Inheritance: extends WC_Settings_Page
显示文件 Open project: woocommerce/woocommerce

Public Methods

Method Description
__construct ( ) Constructor.
add_settings_page ( $pages ) Add this page to settings.
get_sections ( ) : array Get sections.
get_settings ( ) : array Get settings array.
output ( ) Output the settings.
save ( ) Save settings.

Protected Methods

Method Description
instance_settings_screen ( integer $instance_id ) Show instance settings
output_shipping_class_screen ( ) Handles output of the shipping class settings screen.
output_zones_screen ( ) Handles output of the shipping zones page in admin.
zone_methods_screen ( integer $zone_id ) Show method for a zone
zones_screen ( ) Show zones

Method Details

__construct() public method

Constructor.
public __construct ( )

add_settings_page() public method

Add this page to settings.
public add_settings_page ( $pages )

get_sections() public method

Get sections.
public get_sections ( ) : array
return array

get_settings() public method

Get settings array.
public get_settings ( ) : array
return array

instance_settings_screen() protected method

Show instance settings
protected instance_settings_screen ( integer $instance_id )
$instance_id integer

output() public method

Output the settings.
public output ( )

output_shipping_class_screen() protected method

Handles output of the shipping class settings screen.

output_zones_screen() protected method

Handles output of the shipping zones page in admin.
protected output_zones_screen ( )

save() public method

Save settings.
public save ( )

zone_methods_screen() protected method

Show method for a zone
protected zone_methods_screen ( integer $zone_id )
$zone_id integer

zones_screen() protected method

Show zones
protected zones_screen ( )