wcvendors_csv_headers

Description

apply_filters( 'wcvendors_csv_headers', $headers, $product_id, $items )

Parameters ( 3 ) ( array ), ( int ), ( array )

Usage Examples

To run the filter, copy this sample

$array_val = apply_filters( 'wcvendors_csv_headers', $headers, $product_id, $items );
  if ( ! empty( $array_val ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

// the filter wcvendors_csv_headers callback
function my_filter_function( $param1, $param2, $param3 )  {
  // do your thing here :-) ... 

  return $array_val;
}
add_filter( 'wcvendors_csv_headers' , 'my_filter_function', 10, 3 );

To remove the filter, copy this sample

 //remove the filter
remove_filter( 'wcvendors_csv_headers', 'my_filter_function', 10, 3 );

Defined

This filter is defined in the following source file(s)

  • wc-vendors/classes/front/orders/class-export-csv.php line 61
    $headers = apply_filters( 'wcvendors_csv_headers', $headers, $product_id, $items );

filters

Updated on January 14, 2017

Was this article helpful?