Automattic\WooCommerce\Internal\RestApi\Routes\V4\Settings\Tax

Controller::get_settings_tax_instanceprivateWC 1.0

Get the WC_Settings_Tax instance.

Метод класса: Controller{}

Хуков нет.

Возвращает

WC_Settings_Tax.

Использование

// private - только в коде основоного (родительского) класса
$result = $this->get_settings_tax_instance();

Код Controller::get_settings_tax_instance() WC 10.5.2

private function get_settings_tax_instance() {
	if ( is_null( $this->settings_tax_instance ) ) {
		$this->settings_tax_instance = new WC_Settings_Tax();
	}
	return $this->settings_tax_instance;
}