Created
July 18, 2014 03:22
-
-
Save viniciusrtf/9c280039db2246a277c3 to your computer and use it in GitHub Desktop.
WooCommerce Hook: Remove 'order notes' from checkout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Hook: Remove 'order notes' from checkout | |
*/ | |
add_filter( 'woocommerce_checkout_fields' , 'lenura_remove_order_notes_from_checkout' ); | |
function lenura_remove_order_notes_from_checkout( $fields ) { | |
unset($fields['order']['order_comments']); | |
return $fields; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment