Automattic\WooCommerce\Internal\OrderWithdrawal
OrderWithdrawalFormView::get_withdrawal_type_label
Get the label for a withdrawal type value.
Method of the class: OrderWithdrawalFormView{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->get_withdrawal_type_label( $withdrawal_type ): string;
- $withdrawal_type(string) (required)
- Withdrawal type value.
OrderWithdrawalFormView::get_withdrawal_type_label() OrderWithdrawalFormView::get withdrawal type label code WC 11.1.2
private function get_withdrawal_type_label( string $withdrawal_type ): string {
$options = $this->get_withdrawal_type_options();
return $options[ $withdrawal_type ] ?? '';
}