WC_Order_Item_Tax::get_rate_percent()publicWC 1.0

Get rate value

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

Хуков нет.

Возвращает

float.

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

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

Код WC_Order_Item_Tax::get_rate_percent() WC 8.7.0

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