Automattic\WooCommerce\Internal\OrderWithdrawal
OrderWithdrawalFormView::get_withdrawal_type_options
Get the available withdrawal type options.
Метод класса: OrderWithdrawalFormView{}
Хуков нет.
Возвращает
array<string,string>.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_withdrawal_type_options(): array;
Код OrderWithdrawalFormView::get_withdrawal_type_options() OrderWithdrawalFormView::get withdrawal type options WC 11.2.2
private function get_withdrawal_type_options(): array {
return array(
OrderWithdrawalFormProcessor::WITHDRAWAL_TYPE_FULL => __( 'The full order', 'woocommerce' ),
OrderWithdrawalFormProcessor::WITHDRAWAL_TYPE_SPECIFIC => __( 'Specific items only', 'woocommerce' ),
);
}