Skip to content

Instantly share code, notes, and snippets.

@maxrice
Created October 11, 2017 21:47
Show Gist options
  • Save maxrice/61cb844d545b0b699b2885ff5b63c40c to your computer and use it in GitHub Desktop.
Save maxrice/61cb844d545b0b699b2885ff5b63c40c to your computer and use it in GitHub Desktop.
Jilt for WooCommerce - Disable moving the email field at checkout
<?php
add_action( 'init', function() {
if ( is_callable( 'wc_jilt' ) ) {
remove_filter( 'woocommerce_checkout_fields', array( wc_jilt()->get_checkout_handler_instance(), 'move_checkout_email_field' ), 1 );
}
}, 20 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment