Merge pull request #6576 from primozcigler/master
Added the filter for the ajax cart_hash
This commit is contained in:
commit
5724d1c43f
|
@ -96,7 +96,7 @@ class WC_AJAX {
|
|||
'div.widget_shopping_cart_content' => '<div class="widget_shopping_cart_content">' . $mini_cart . '</div>'
|
||||
)
|
||||
),
|
||||
'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 );
|
||||
|
|
Loading…
Reference in New Issue