Skip to content

Instantly share code, notes, and snippets.

@atwellpub
Created July 16, 2014 18:24
Show Gist options
  • Save atwellpub/1535f1d55e08849b024f to your computer and use it in GitHub Desktop.
Save atwellpub/1535f1d55e08849b024f to your computer and use it in GitHub Desktop.
Temporary fix for Woocommerce 'proceed to checkout' bug while Inbound Now tools are installed.
<?php
/**
* Removes tracking class 'wpl-track-me' from woocommerce cart display form'
*/
add_action('wp_footer' , 'remove_cart_tracking_class');
function remove_cart_tracking_class() {
?>
<script type='text/javascript'>
jQuery( document ).ready(function() {
jQuery('input[name="proceed"]').closest("form").removeClass('wpl-track-me');
})
</script>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment