woocommerce_update_order_review_fragments
Session has expired.
Использование
add_filter( 'woocommerce_update_order_review_fragments', 'wp_kama_woocommerce_update_order_review_fragments_filter' ); /** * Function for `woocommerce_update_order_review_fragments` filter-hook. * * @param $array * * @return */ function wp_kama_woocommerce_update_order_review_fragments_filter( $array ){ // filter... return $array; }
- $array
- -
Где вызывается хук
woocommerce_update_order_review_fragments
woocommerce_update_order_review_fragments
woocommerce/includes/class-wc-ajax.php 325-335
'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 ), ) ),
woocommerce/includes/class-wc-ajax.php 440-446
'fragments' => apply_filters( 'woocommerce_update_order_review_fragments', array( '.woocommerce-checkout-review-order-table' => $woocommerce_order_review, '.woocommerce-checkout-payment' => $woocommerce_checkout_payment, ) ),