Created
          September 5, 2014 18:22 
        
      - 
      
- 
        Save rayflores/d86643a9378b68accba6 to your computer and use it in GitHub Desktop. 
    unset_line_items for exporter
  
        
  
    
      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
    
  
  
    
  | <?php | |
| function sv_add_weight_to_csv_export_line_item( $line_item, $item, $product, $order ) { | |
| //$line_item['weight'] = 'weight:' . $product->get_weight(); | |
| unset($line_item['name']); | |
| return $line_item; | |
| } | |
| add_filter( 'wc_customer_order_csv_export_order_line_item', 'sv_add_weight_to_csv_export_line_item', 10, 4 ); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment