Merge pull request #6576 from primozcigler/master

Added the filter for the ajax cart_hash
This commit is contained in:
Mike Jolley 2014-10-20 16:10:23 +01:00
commit 5724d1c43f
1 changed files with 1 additions and 1 deletions

View File

@ -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 );