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.

Method of the class: OrderWithdrawalFormProcessor{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->get_withdrawal_window_warning_message(): string;

OrderWithdrawalFormProcessor::get_withdrawal_window_warning_message() code WC 11.1.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
	);
}