Last active
          February 3, 2017 07:39 
        
      - 
      
- 
        Save rynaldos-zz/0927ed0b1e0bb844588fd74f0726b11b to your computer and use it in GitHub Desktop. 
    [WooCommerce] Unset the SKU in PIP (Print Invoices & Packing lists)
  
        
  
    
      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( 'wc_pip_document_table_headers', 'sv_wc_pip_document_unset_sku', 200, 1 ); | |
| add_filter( 'wc_pip_document_table_row_item_data', 'sv_wc_pip_document_unset_sku', 200, 1 ); | |
| function sv_wc_pip_document_unset_sku( $row ) { | |
| unset( $row['sku'] ); | |
| return $row; | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment