Last active
October 3, 2019 07:55
-
-
Save ncyhere/5414b48f7ce5c82295ed42b1fd1d0125 to your computer and use it in GitHub Desktop.
Remove Order notes from WooCommerce Checkout Page
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
/** | |
* @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