Store file uploads for Contact Form 7
By default, Contact Form 7 dose not keep data it sends trough it’s contact forms. While plugins like Flamingo save that data, uploaded files are not added to Media Library. This plugin will save uploaded files to Media Library before email is sent by CF7. This plugin will raise an event with the the full file path & name. Subscribe to nmr_create_attachment_file_name filter to get and/or update data before attachment is added to media library. // The filter callback function. function example_callback( $file_name ) { // (maybe) modify $file_name. return $file_name; } add_filter( 'nmr_create_attachment_file_name', 'example_callback', 10, 1 ); Subscribe to nmr_before_insert_attachment filter to be able to change attachment attributes: caption and description are ‘post_excerpt’ and ‘post_content’. For other attributes, check documentation for wp_insert_attachment. // The filter callback function. function before_insert_attachment_callback( $attachment ) { // (maybe) modify $attachment array. return $attachment; } add_filter( 'nmr_before_insert_attachment', 'before_insert_attachment_callback', 10, 1 ); Optionally, subscribe to nmr_should_skip_save_attachment_to_media_library filter to be able to skip saving the attachment to media library: return true to skip, false is the default behaviour that saves the attachment to media library. Filter nmr_before_insert_attachment will not be called if skip was true. // The filter callback function. function skip_media_library_callback( $skip_save_to_media_library ) { // return true to skip saving to Media Library, false to save. return true; } add_filter( 'nmr_should_skip_save_attachment_to_media_library', 'skip_media_library_callback', 10, 1 ); This plugin will send the final attachment id if you are interested in getting other details, like attachment url. Listen to nmr_create_attachment_id_generated action. // The action callback function. function example_callback_id_generated( $attachment_id ) { // (maybe) do something with the args. $url = wp_get_attachment_url( $attachment_id ); } add_action( 'nmr_create_attachment_id_generated', 'example_callback_id_generated', 10, 1 ); Docs & Support Check the support forum on WordPress.org. If you can’t locate any topics that pertain to your particular issue, post a new topic for it. Store file uploads for Contact Form 7 Needs Your Support It is hard to continue development and support for this free plugin without contributions from users like you. If you enjoy using -Store file uploads for Contact Form 7- and find it useful, please consider making a donation. Your donation will help encourage and support the plugin’s continued development and better user support. Privacy Notices With the default configuration, this plugin, in itself, does not: track users by stealth; write any user personal data to the database; send any data to external servers; use cookies. It will, however store uploaded files trough Contact Form 7 in WordPress Media Library. Make sure your website users are aware of this fact!!! Pro Version Need more? The Pro version adds 13 features: Per-form control — choose which forms save files, set custom folder and rename pattern per form Auto-rename — rename files using patterns like {name}-{date}.{ext} from other CF7 fields Unique filenames — automatically avoid overwriting files with the same name Custom upload folder — save files to a specific subfolder per form File URL in email — replace [file] mail tag with a clickable link instead of an attachment Skip-mail compatibility — save files even when CF7’s skip_mail: on is set Upload log — admin screen listing every uploaded file with form, date, size, and download link Private files — store files outside the Media Library with access protection Admin notification — receive an email with file link on every upload Flamingo integration — link uploaded files to Flamingo inbound message entries Auto-delete — remove uploads older than a configurable number of days Image resize / compress — resize and compress images on upload Duplicate detection — skip saving if the same file was already uploaded (MD5 check) Get Pro →
Top keywords
- attachment24×3.72%
- file13×2.02%
- media13×2.02%
- library12×1.86%
- media library12×1.86%
- files11×1.71%
- filter10×1.55%
- skip10×1.55%
- callback9×1.40%
- save9×1.40%
- function8×1.24%
- form7×1.09%
Universal WP Lead Tracking
Universal WP Lead Tracking gives you important information about users from contact form submissions on your WordPress site and allows you to instantly set up Google Analytics events to send conversion data when someone submits a form on your website. When you receive an e-mail from a contact form on your website, you will instantly see data on a user’s landing page on your site, the page that they filled out the contact form on, the referring source that sent them to your website, their location IP (country-level) and browser/platform used. This information is added by simply putting the [tracking-info] shortcode in the email being sent to you when a user submits a form on your website. Just paste the [tracking-info] shortcode in your e-mail template, and every time you receive a lead from your website, you will be able to see information from the user that submitted the form. The Specific Information This Plugin Provides The tracking info specifically includes the Form Page URL, Original Referrer, Landing Page, User IP, and Browser. What do these specific items mean? Form Page URL: This is the page on your website where the user filled out your form. Original Referrer: This is where the user came to your website from such as Google or Facebook. Landing Page: This is the page on your website that the user first came to from an outside source. User IP: This is the IP address of the user that sent a form submission and includes a country location. Browser: This tells you what browser a user was on when they sent a form submission. This Tracking Code Works With Most Major Form Plugins This shortcode tracking method will work with forms on Contact Form 7, Gravity Forms, Ninja Forms, or Elementor PRO. Because it is shortcode based, you can just drop in the code to the e-mail submission template on any of these major form plugins. If you are sending your website e-mail submissions via an HTML based output on one of these plugins, we have that covered too. Just add html=”true” to your shortcode like so: [tracking-info html="true"] This Plugin Sends Form Events To Google Analytics As an added feature, you can track any form submission on your website as a Google Analytics event if you have Google Analytics set up on your website. This happens automatically when you check the box for the Analytics event you want on the plugin settings section. We currently support ga{} events for Universal Analytics and gtag{} events for Google Analytics 4. This will show up in your Google Analytics view as an action called “submit” with an event category called “Contact Form” that you can then set as a lead source in your conversion preferences in Google Analytics For more plugins, help, or information about this plugin please visit www.inboundhorizons.com.
Top keywords