WC_AJAX::update_order_review_expired()private staticWC 1.0

Session has expired.

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

Хуки из метода

Возвращает

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

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

$result = WC_AJAX::update_order_review_expired();

Код WC_AJAX::update_order_review_expired() WC 9.1.2

private static function update_order_review_expired() {
	wp_send_json(
		array(
			'fragments' => apply_filters(
				'woocommerce_update_order_review_fragments',
				array(
					'form.woocommerce-checkout' => wc_print_notice(
						esc_html__( 'Sorry, your session has expired.', 'woocommerce' ) . ' <a href="' . esc_url( wc_get_page_permalink( 'shop' ) ) . '" class="wc-backward">' . esc_html__( 'Return to shop', 'woocommerce' ) . '</a>',
						'error',
						array(),
						true
					),
				)
			),
		)
	);
}