Last active
May 30, 2019 05:22
-
-
Save neilgee/59c3d09c084aa9084e5d to your computer and use it in GitHub Desktop.
Remove the Additional Information and Order Notes WooCommerce
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
// Removes Order Notes Title - Additional Information & Notes Field | |
add_filter( 'woocommerce_enable_order_notes_field', '__return_false', 9999 ); | |
// Remove Order Notes Field | |
add_filter( 'woocommerce_checkout_fields' , 'remove_order_notes' ); | |
function remove_order_notes( $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
Thanks