UniqueID for Contact Form 7
v2.4.0Ewald Harmsen · 2019年1月16日 上架
An add-on for Contact Form 7 to add an unique id to every form submission.
- 正在使用
- 2,000+
- 评分
- 2.7 / 5
- 累计下载
- 2.2 万
- 最近更新
- 2021年4月1日
10 条评价需要 WordPress 4.0.0+已测试到 5.7.0PHP 5.2.4+
贡献者
截图
Plugin for Contact Form 7: adds a field for an unique submission id.
You can choose to include a hidden or an visible field to your form.
This field will be automatically filled with an number which is incremented on every submission.
Usage
Just add the field to your form.
You can filter the value using the cf7_submission_id_filter.
To add leading zeros for example, just put the code below in your functions.php
add_filter('cf7_submission_id_filter', 'custom_cf7_submission_id_filter');
function custom_cf7_submission_id_filter($val){
return sprintf("%04d", $val);
}

