WC_Settings_Tax::__construct()publicWC 1.0

Constructor.

Method of the class: WC_Settings_Tax{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Settings_Tax = new WC_Settings_Tax();
$WC_Settings_Tax->__construct();

WC_Settings_Tax::__construct() code WC 8.7.0

public function __construct() {
	$this->id    = 'tax';
	$this->label = __( 'Tax', 'woocommerce' );

	add_filter( 'woocommerce_settings_tabs_array', array( $this, 'add_settings_page' ), 20 );
	add_action( 'woocommerce_admin_field_conflict_error', array( $this, 'conflict_error' ) );
	if ( wc_tax_enabled() ) {
		add_action( 'woocommerce_sections_' . $this->id, array( $this, 'output_sections' ) );
		add_action( 'woocommerce_settings_' . $this->id, array( $this, 'output' ) );
		add_action( 'woocommerce_settings_save_' . $this->id, array( $this, 'save' ) );
	}
}