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