WC_AJAX::update_order_review_expired
Session has expired.
Method of the class: WC_AJAX{}
Hooks from the method
Returns
null. Nothing (null).
Usage
$result = WC_AJAX::update_order_review_expired();
WC_AJAX::update_order_review_expired() WC AJAX::update order review expired code WC 10.5.0
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
),
)
),
)
);
}