Skip to content

Instantly share code, notes, and snippets.

@neilgee
Last active May 30, 2019 05:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neilgee/59c3d09c084aa9084e5d to your computer and use it in GitHub Desktop.
Save neilgee/59c3d09c084aa9084e5d to your computer and use it in GitHub Desktop.
Remove the Additional Information and Order Notes WooCommerce
// 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;
}
@lawchumba
Copy link

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment