How to intercept the URL of a field
-
Hi!
I want to get the URL of the file or files that is being sent through the form. For regular fields, I do it like this:add_action( 'wpcf7_before_send_mail', 'contactform7_before_send_mail' ); function contactform7_before_send_mail( $contact_form ) { $title = $contact_form->title; $submission = WPCF7_Submission::get_instance(); $posted_data = $submission->get_posted_data(); $name = sanitize_text_field ($posted_data['name']); }
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to intercept the URL of a field’ is closed to new replies.