Skip to content

Instantly share code, notes, and snippets.

@imran-khan1
Created July 12, 2019 07:49
Show Gist options
  • Save imran-khan1/929ea6925652af0644c207fcf99a3370 to your computer and use it in GitHub Desktop.
Save imran-khan1/929ea6925652af0644c207fcf99a3370 to your computer and use it in GitHub Desktop.
<?php
/*
*remove Order Notes from checkout field in Woocommerce
*/
add_filter( 'woocommerce_checkout_fields' , 'ci_woo_checkout_fields' );
function ci_woo_checkout_fields( $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