Description
apply_filters( 'wcvendors_csv_body', $new_body, $product_id, $items )
Parameters ( 3 ) ( array ), ( int ), ( array )
Usage Examples
To run the filter, copy this sample
$array_val = apply_filters( 'wcvendors_csv_body', $new_body, $product_id, $items ); if ( ! empty( $array_val ) ) { // what has been modified... }
To make a callback function, copy this sample
// the filter wcvendors_csv_body callback function my_filter_function( $param1, $param2, $param3 ) { // do your thing here :-) ... return $str; } add_filter( 'wcvendors_csv_body' , 'my_filter_function', 10, 3 );
To remove the filter, copy this sample
//remove the filter remove_filter( 'wcvendors_csv_body', '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 62
$body = apply_filters( 'wcvendors_csv_body', $new_body, $product_id, $items );