WordPress at Your Fingertips
function is not described

WC_Settings_Tax::__construct() public WC 1.0

Constructor.

{} It's a method of the class: WC_Settings_Tax{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Settings_Tax::__construct() WC 5.9.0

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

	add_filter( 'woocommerce_settings_tabs_array', array( $this, 'add_settings_page' ), 20 );

	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' ) );
	}
}