Automattic\WooCommerce\Internal\OrderWithdrawal

OrderWithdrawalFormView::get_withdrawal_type_label │ private │ WC 1.0

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() WC 11.2.2

private function get_withdrawal_type_label( string $withdrawal_type ): string {
	$options = $this->get_withdrawal_type_options();

	return $options[ $withdrawal_type ] ?? '';
}