PHP Class WC_Settings_Tax

Inheritance: extends WC_Settings_Page
Afficher le fichier Open project: woocommerce/woocommerce

Protected Properties

Свойство Type Description
$id string Setting page id.

Méthodes publiques

Méthode 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

Méthode 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 méthode

Constructor.
public __construct ( )

add_settings_page() public méthode

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

get_sections() public méthode

Get sections.
public get_sections ( ) : array
Résultat array

get_settings() public méthode

Get settings array.
public get_settings ( ) : array
Résultat array

output() public méthode

Output the settings.
public output ( )

output_tax_rates() public méthode

Output tax rate tables.
public output_tax_rates ( )

save() public méthode

Save settings.
public save ( )

save_tax_rates() public méthode

Save tax rates.
public save_tax_rates ( )

Property Details

$id protected_oe property

Setting page id.
protected string $id
Résultat string