PHP Class WC_Settings_Tax

Inheritance: extends WC_Settings_Page
Datei anzeigen Open project: woocommerce/woocommerce

Protected Properties

Property Type Description
$id string Setting page id.

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.
output_tax_rates ( ) Output tax rate tables.
save ( ) Save settings.
save_tax_rates ( ) Save tax rates.

Private Methods

Method Description
get_current_tax_class ( ) : string Get tax class being edited.
get_posted_tax_rate ( string $key, integer $order, string $class ) : array Get a posted tax rate.

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

output() public method

Output the settings.
public output ( )

output_tax_rates() public method

Output tax rate tables.
public output_tax_rates ( )

save() public method

Save settings.
public save ( )

save_tax_rates() public method

Save tax rates.
public save_tax_rates ( )

Property Details

$id protected_oe property

Setting page id.
protected string $id
return string