前言介紹
- 這款 WordPress 外掛「Store file uploads for Contact Form 7」是 2020-02-27 上架。
- 目前有 1000 個安裝啟用數。
- 上一次更新是 2024-06-07,距離現在已有 331 天。
- 外掛最低要求 WordPress 4.9 以上版本才可以安裝。
- 有 6 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
mirceatm |
外掛標籤
file | form | upload | contact | library |
內容簡介
預設狀態下,Contact Form 7 不會保留通過其聯絡表單發送的數據。
雖然像 Flamingo 這樣的外掛會保存這些數據,但上傳的文件並不會添加到媒體庫。
這個外掛會在 CF7 發送電子郵件之前將上傳的文件保存到媒體庫中。
此外,該外掛會觸發一個事件,其中包含完整的文件路徑和名稱。
你可以通過訂閱 nmr_create_attachment_file_name 過濾器來獲取和/或更新附件添加到媒體庫之前的數據。
// 過濾器回呼函數。
function example_callback( $file_name ) {
//(可能)修改 $file_name。
return $file_name;
}
add_filter( 'nmr_create_attachment_file_name', 'example_callback', 10, 1 );
你可以通過訂閱 nmr_before_insert_attachment 過濾器來更改附件屬性:標題和描述是「post_excerpt」和「post_content」。
有關其他屬性,請參閱 wp_insert_attachment 的文檔。
// 過濾器回呼函數。
function before_insert_attachment_callback( $attachment ) {
//(可能)修改 $attachment 陣列。
return $attachment;
}
add_filter( 'before_insert_attachment_callback', 'example_callback', 10, 1 );
如果你對附件的其他詳細信息感興趣,例如附件的 URL,則此外掛會發送最終的附件 ID。
你可以訂閱 nmr_create_attachment_id_generated 事件以做出回應。
// 事件回呼函數。
function example_callback_id_generated( $attachment_id ) {
//(可能)對這些引數執行某些操作。
$url = wp_get_attachment_url( $attachment_id );
}
add_action( 'nmr_create_attachment_id_generated', 'example_callback_id_generated', 10, 1 );
文件和支援
請查看 WordPress.org 上的 支援論壇。如果找不到任何與你特定問題相關的主題,請發佈一個新主題。
Store file uploads for Contact Form 7 需要您的支持
在沒有像你一樣的用戶貢獻的情況下,這個免費外掛很難繼續開發和支援。如果你喜歡使用「Store file uploads for Contact Form 7」並找到它很有用,請考慮捐贈。你的捐贈將有助於鼓勵和支持外掛的持續發展以及更好的用戶支援。
隱私通知
使用預設配置時,此外掛本身不會:
秘密跟踪用戶;
將任何用戶個人數據寫入數據庫;
發送數據到外部服务器;
使用 Cookie。
但是,它會通過 Contact Form 7 將上傳的文件存儲在 WordPress 媒體庫中。
請確保你的網站用戶知道這一點!!!
原文外掛簡介
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!!!
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Store file uploads for Contact Form 7」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.0 | 1.1.0 | 1.2.0 | 1.2.1 | 1.2.2 | 1.2.3 | trunk |
延伸相關外掛(你可能也想知道)
MC4WP: Mailchimp for WordPress 》讓訪客訂閱您的電子報應該很容易。透過這款外掛,現在終於可以輕鬆做到了。 這個外掛可幫助您在 Mailchimp 中擴展您的電子郵件列表。您可以使用它來創建外觀...。
Newsletters, Email Marketing, SMS and Popups by Omnisend 》總結文案:, 「Omnisend 外掛連接至 Omnisend 電子郵件行銷工具,可讓其他外掛自動將表單數據和聯絡資訊傳送至 Omnisend。這能夠簡化聯絡人分類並發送個人化郵...。
MW WP Form 》MW WP Form 可以使用 shortcode 創建帶有確認畫面的郵件表單。, , 使用 shortcode 創建表單, 可以使用確認頁面。, 頁面可以使用相同的 URL 或個別的 URL 進行...。
Newsletter, SMTP, Email marketing and Subscribe forms by Brevo (formely Sendinblue) 》Sendinblue 的官方 WordPress 外掛程式是一個功能強大的全方位電子郵件行銷外掛程式。以下是一些概觀:, , 訂閱表單 – 建立自訂訂閱表單,輕鬆整合到文章、頁...。
Conditional Fields for Contact Form 7 》此外掛可以讓您的 Contact Form 7 表單加入條件式邏輯。, 當您編輯您的 CF7 表單時,您會看到一個額外的標籤,名為「條件式欄位群組」。您放置在起始標籤和結...。
MailerLite – Signup forms (official) 》MailerLite – Signup forms (official) 外掛, 官方的 MailerLite 訂閱表單外掛讓您可以輕鬆地從 WordPress 網誌或網站增加您的電子報訂閱者清單。此外...。
Contact Form 7 add confirm 》“Contact Form 7 add confirm” 可以為 “Contact Form 7” 增加確認步驟。, “Contact Form 7 add confirm” 可以為 “...。
Contact Form 7 Multi-Step Forms 》我需要一個可以跨越多個頁面的聯繫表單,並且最終會發送一封帶有所有收集信息的電子郵件。這個外掛通過擴展熱門的 Contact Form 7 外掛來實現這一點。, 這個...。
Calculated Fields Form 》「Calculated Fields Form」外掛能夠讓你創建具有計算欄位的網頁表單,欄位的值根據表單中其他欄位的值實時計算。, , 這個外掛的可能性是無限的。例如,你可...。
Form Maker by 10Web – Mobile-Friendly Drag & Drop Contact Form Builder 》Form Maker 是一款頂尖的拖曳式外掛程式,讓您可以透過幾個點擊輕鬆建立任何複雜度的表單。, 有用連結:, 現場示範, 演示管理員, 由 10Web 提供的高級表單 Ma...。
reCAPTCHA for MW WP Form 》您可以在 MW WP FORM 中使用 "reCAPTCHA V3"。, 注意:, 需要 MW WP Form(https://wordpress.org/plugins/mw-wp-form/), /assets/screenshot-1.png, 。
Gravity PDF 》Gravity PDF 是使用 Gravity Forms 和 WordPress 創建動態數字 PDF 文件的最佳自助式解決方案。, 高度自定義的 PDF, 開箱即用的版本提供了四種高度自定義的 P...。
Advanced Custom Fields: Gravity Forms Add-on 》提供進階自訂欄位 (Advanced Custom Field),讓 WordPress 編輯使用者或管理員可以在欄位群組配置中選擇 Gravity Form。, 可以在 外掛的 GitHub 存儲庫 中找...。
WordPress File Upload 》這個外掛讓你或其他使用者可以從任何頁面、文章或側邊欄輕鬆、安全地上傳檔案到你的網站。, 只需要在任何 WordPress 頁面/文章中加入簡碼 [wordpress_file_up...。
Visual Form Builder 》Visual Form Builder 是一個外掛,可讓您在同一地方建立和管理各種網站表單。只需幾分鐘就可以建立完整的聯絡表單,您不需要撰寫任何 PHP、CSS 或 HTML!, 升...。