woocommerce - Remove header (first row) from csv export -


the company work has bought amazing plugin "woocommerce customer/order csv export" works charm. documentation sublime, got fields , snippets customize export, works perfectly!

now, have small problem headers. need remove them , found filter apply don't understand how make function out of this. can maybe provide me way export data without headers on first row?

so basicly, can me write function removes first row of export or hide header array?

this filter found in documentation:
apply_filters( 'wc_customer_order_csv_export_generated_csv', $csv, $this );

many in advance , kind regards,

try this:

//delete headers  function delete_headers_csv($csv){      foreach (explode("\n", $csv) $line) {       if ($i != 0 ) {         $temp .= $line."\n";       }       $i++;     }     echo $temp; }  add_filter( 'wc_customer_order_csv_export_generated_csv','delete_headers_csv'); 

Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -