WC_Settings_Tax::__construct() public WC 1.0
Constructor.
{} Это метод класса: WC_Settings_Tax{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$WC_Settings_Tax = new WC_Settings_Tax(); $WC_Settings_Tax->__construct();
Код WC_Settings_Tax::__construct() WC Settings Tax:: construct WC 5.0.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' ) );
}
}