## filters – How do you make a webhook to get elementor form entry data and use it to modify the dowload URL of a file in woocommerce?

Question

I am a beginner so hopefully someone can help me. I want to edit the download URL of a product based on any specific field in the form entry of elementor pro.

I used the filter code below to set up the change in the URL, but I don’t know how to get any data that was filled in the form in the function ([ELEMENTOR FORM FIELD]).

function filter_function_name_3287( $file_path,$that, $download_id ){$file_path="/wp-content/uploads/elementor/pdf/" . '[ELEMENTOR FORM FIELD]' . '.pdf';
return \$file_path;
}

If it’s not possible to link it to the form, could I use the current user ID or name? and how?

0
2 months 2021-08-10T17:41:47-05:00 0 Answers 0 views 0