Last active
February 3, 2017 08:09
-
-
Save rynaldos-zz/047b79443b4d9e1087267252abb64b93 to your computer and use it in GitHub Desktop.
[WooCommerce] Make the Order_Comments Required
This file contains hidden or 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
| add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' ); | |
| function custom_override_checkout_fields( $fields ) { | |
| $fields['order']['order_comments']['required'] = true; | |
| return $fields; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment