Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.3', '>=' ) ) {
- add_filter( 'woocommerce_add_to_cart_fragments', array( $this, 'cart_link_fragments' ) );
- } else {
- add_filter( 'add_to_cart_fragments', array( $this, 'cart_link_fragments' ) );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement