WC_Settings_Tax::__construct()
Constructor.
Method of the class: WC_Settings_Tax{}
No Hooks.
Return
null
. Nothing.
Usage
$WC_Settings_Tax = new WC_Settings_Tax(); $WC_Settings_Tax->__construct();
WC_Settings_Tax::__construct() WC Settings Tax:: construct code WC 7.5.1
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' ) ); } }