WC_Gateway_Paypal_Request::currency_has_decimals()
Check if currency has decimals.
Метод класса: WC_Gateway_Paypal_Request{}
Хуков нет.
Возвращает
true|false
.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->currency_has_decimals( $currency );
- $currency(строка) (обязательный)
- Currency to check.
Код WC_Gateway_Paypal_Request::currency_has_decimals() WC Gateway Paypal Request::currency has decimals WC 8.7.0
protected function currency_has_decimals( $currency ) { if ( in_array( $currency, array( 'HUF', 'JPY', 'TWD' ), true ) ) { return false; } return true; }