Created
          December 5, 2017 06:04 
        
      - 
      
- 
        Save rynaldos-zz/7c9241b0fdab766772c5b4f9771b27ee to your computer and use it in GitHub Desktop. 
    [WooCommerce 3.0+] Limit order_comments charaters
  
        
  
    
      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', 'filter_checkout_fields' ); | |
| function filter_checkout_fields( $fields ) { | |
| $fields['order']['order_comments']['maxlength'] = 140; | |
| return $fields; | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment