Automattic\WooCommerce\Internal\OrderWithdrawal
OrderWithdrawalFormView::get_withdrawal_type_label
Get the label for a withdrawal type value.
Метод класса: OrderWithdrawalFormView{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_withdrawal_type_label( $withdrawal_type ): string;
- $withdrawal_type(строка) (обязательный)
- Withdrawal type value.
Код OrderWithdrawalFormView::get_withdrawal_type_label() OrderWithdrawalFormView::get withdrawal type label WC 11.2.2
private function get_withdrawal_type_label( string $withdrawal_type ): string {
$options = $this->get_withdrawal_type_options();
return $options[ $withdrawal_type ] ?? '';
}