WC_Order_Item_Tax::get_rate_id()publicWC 1.0

Get tax rate ID.

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

Хуков нет.

Возвращает

int.

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

$WC_Order_Item_Tax = new WC_Order_Item_Tax();
$WC_Order_Item_Tax->get_rate_id( $context );
$context(строка)
What the value is for. Valid values are 'view' and 'edit'.
По умолчанию: 'view'

Код WC_Order_Item_Tax::get_rate_id() WC 8.7.0

public function get_rate_id( $context = 'view' ) {
	return $this->get_prop( 'rate_id', $context );
}