diff --git a/includes/class-wc-ajax.php b/includes/class-wc-ajax.php index 545d734b134..5fc2389c85d 100644 --- a/includes/class-wc-ajax.php +++ b/includes/class-wc-ajax.php @@ -96,7 +96,7 @@ class WC_AJAX { 'div.widget_shopping_cart_content' => '
' ) ), - 'cart_hash' => WC()->cart->get_cart() ? md5( json_encode( WC()->cart->get_cart() ) ) : '' + 'cart_hash' => apply_filters( 'add_to_cart_cart_hash', WC()->cart->get_cart() ? md5( json_encode( WC()->cart->get_cart() ) ) : '', WC()->cart->get_cart() ) ); wp_send_json( $data );