Automattic\WooCommerce\Internal\OrderWithdrawal

OrderWithdrawalFormProcessor::get_withdrawal_window_warning_message │ private │ WC 1.0

Get the warning shown to merchants when a request is outside the valid window.

Метод класса: OrderWithdrawalFormProcessor{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// private - только в коде основоного (родительского) класса
$result = $this->get_withdrawal_window_warning_message(): string;

Код OrderWithdrawalFormProcessor::get_withdrawal_window_warning_message() WC 11.2.2

private function get_withdrawal_window_warning_message(): string {
	return sprintf(
		/* translators: 1: number of days since the order was placed. 2: length of the withdrawal window in days. */
		__( 'This order is older than %1$d days. Only orders within %2$d days of delivery are eligible for withdrawal.', 'woocommerce' ),
		self::WITHDRAWAL_WINDOW_IN_DAYS,
		self::WITHDRAWAL_WINDOW_IN_DAYS
	);
}