You can use “actions”. More info: http://hookr.io/actions/wpcf7_mail_sent/
Put this code in your functions.php:
function action_wpcf7_mail_sent( $contact_form ) {
// here your file redirect
header("Location: http://yourfileurl.com");
};
add_action( 'wpcf7_mail_sent', 'action_wpcf7_mail_sent', 10, 1 );
let me you if it is working i cannot test right now.
Related Posts:
- Contact Form 7 plugin refreshing page on submit [closed]
- WordPress contact form 7 to show the form dropdown menus as like [closed]
- Contact Form 7 “non-selectable” options in a drop down [closed]
- Push Contact form 7 variable to front end after submission
- get/show Last ID
- Contact Form 7: custom validation [closed]
- Integrate Razorpay quick payments plugin with contact form7 plugin
- plugin doesn’t retrieve data from database
- Should all plugins be encapsulated in a Class?
- PHP code on Visual Composer Plugin
- Making plugin unique to not conflict with plugins with the same name
- How to find out if option exists but is empty?
- Trying to disable plugins doens’t work
- Thumb rating for wordpress – top user
- Errors while using ajax from external wordpress page
- Have Plugin Handle Specific URLs
- Setting up widgets in wordpress with a unique ID for the after_title argument
- post expire after x days
- allow arabic letters when register new account
- How to get all events from ‘All in one Events calender’ plugin in JSON format?
- Server side validation for Contact Form 7 [closed]
- cURL error 60: SSL certificate problem: unable to get local issuer certificate
- How do you remove plugin edit option?
- Make specific products accessible only to a user role in WooCommerce
- Where should I save an API key of my user when installing my plugin?
- Accessing post’s meta data based on user’s click of a post
- Custom form action to handle data inside a plugin
- Set Post Format if find a string in title or post content
- How to periodically scrape and cache strings from remote txt files. – My First Plugin
- How to sanitize uploaded file filename from a plugin?
- Using WP Category Lists Plugin to Dynamically Display Category (PHP)
- WordPress Shortcode to get URL Parameters $_GET[‘name’] redirects for no reason at all
- Using a custom plugin to capture input data via Ajax and PHP
- Set and access global variable
- How to get the element ID from new menu list that added with add_filter()?
- Preg Match All doesn’t Allow echo first character for WordPress Taxonomy Tags
- Replacing a plugin function with a custom renamed function doesn’t work
- How to output CMB2 select options from repeated groups select elements?
- How to deal with WordPress and Pocket API to automate content curation on my hosted wordpress blog? [closed]
- Create Gallery using Custom Post Type and add sum gallery as sub gallery of Main Gallery
- Notify comment author upon reply
- WordPress get_avatar function not correct working
- How passing values to construct function with Actions?
- add_action into another add_action not working
- How to show the number of website visitors in my theme
- Using ‘mysqli_connect’ ‘crashes’ WordPress client-side
- Add User Role: Pre-saved in User-Meta [SOLVED]
- How to make a dynamic css class whose name changes every visit to confuse scraper
- How to create plugin/ page that reads from database
- How WordPress core manage the plugin installation
- Shortcode not working – quotes seems strange
- Using custom fields for image alt and title
- How to display registered customer list as dropdown in WooCommerce checkout?
- Error When Trying To Login [closed]
- “Allowed memory size” problem [closed]
- Echo out element to another page.
- eaccelerator PHP error
- Looking for a good way to include php code in posts, but using special include markup rather than direct php code
- Making a Contact Form 7 calendar entry “required” [closed]
- Contact Form 7 is not redirecting the “Thank-You” page with the removal of CSS and JS of plugins
- i need to make custom cron_schedule with custom interval time as a parameter into a custom payment gateway plugin wordpress
- Redirect unloggedin users
- Show prices with tax Inclusive in Minicart widget
- Custom fields not showing up in the user info (PaidMembershipsPro)
- WP Function does not trigger on Webhook API Call
- Remove a div class with condition
- Problem with checked box on wp car manager plugin
- issue concerning ob_end_flush functions.php
- In a plugin, How to update a json file using ajax
- Hooking into the HTML header container
- PHP Error message Upload images to remote server
- No route was found matching the URL and request method
- Elementor contact form doesn’t work: “Oops! I cannot send this email!”
- WP_get_image_editor resizing images in a foreach loop
- my hook or my function wont run in the cronjob
- CMB2 Output Select Box Chosen Option
- Move plugin upload folder from mywebsite.com/wp-content/uploads/pdfuploads to mywebsite.com/pdfs?
- How to echo a PHP Code After the Content
- Woocommerce list variations that are added already to cart in Single Product
- Show custom taxonomy in theme
- WordPress Admin sub-level menu issue
- Passing ajax variable to more than one wordpress plugin function
- Add class as plugin for other plugins
- Social sharing plugin directing to blank page after post sharing
- using href when creating wordpress plugin calls empty page instead of php file
- Saving custom form fields
- How to add php stylesheet to admin section instead of admin_head hook
- Template from scratch: Sidebars not showing widget
- Enforce conditions only for draft posts using WyPiekacz, ignore pending and published posts
- How to add homepage Widget?
- What can I do to customize a widget provided with this plugin? from where have I to start?
- WordPress create permalink structure for custom post type with userid
- Shortcode inside a redirect [closed]
- Attachement title in wpallimport
- Block registration with viewScript
- How to add custom html to the Media > Attachment Details modal?
- Option value not getting updated until page refresh in WordPress
- Fatal error: Uncaught Error: Call to a member function fetch_array() on bool
- Use inline callable for hooks and filters
- Error in using ‘admin_enqueue_scripts’ action through a class