Skip to content

Instantly share code, notes, and snippets.

@ncyhere
Last active October 3, 2019 07:55
Show Gist options
  • Save ncyhere/5414b48f7ce5c82295ed42b1fd1d0125 to your computer and use it in GitHub Desktop.
Save ncyhere/5414b48f7ce5c82295ed42b1fd1d0125 to your computer and use it in GitHub Desktop.
Remove Order notes from WooCommerce Checkout Page
/**
* @snippet Remove Order notes from WooCommerce Checkout Page
* @author NCY DESIGN https://wordpress.ncy.design
* @compatible WooCommerce 3.7.0
*/
add_filter( 'woocommerce_checkout_fields' , 'ncydesign_remove_ordernotes' );
function ncydesign_remove_ordernotes( $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