I have this filter:
$post_arr = apply_filters('insert_product_post_data', $post_arr, $data);
add_filter('insert_product_post_data', 'my_filter', 10, 2);
function my_filter($post_arr, $data) {
//change $data here
return $post_arr;
}
I need to change the value of $data is any way to do this ?