Plugin Author
WPKube
(@wpkube)
Hi @bigleaf3
Thanks for the rating.
As for the date in the subject, I’ve added that to the to do list for the next update.
Plugin Author
WPKube
(@wpkube)
Hi @bigleaf3
Just released the update.
In the “Default subject” option put [simple_contact_form_date]
in the place where you want the date to be shown.
It will use the date format set in WP admin > Settings > Reading.
If you want a special date format you can do that with
[simple_contact_form_date]m/d/Y[/simple_contact_form_date]
More info on those formats can be found in the php.net documentation.
To make them all unique you can simply use the UNIX timestamp.
[simple_contact_form_date]U[/simple_contact_form_date]
Adding the date and time to the subject field is awesome! Thank you!
For people not familiar with PHP you can use any of the following letters to stand in for the parts of a date and time. The PHP.net site has many other options if you want to get really fancy.
- Y – all 4 digits of the year
- m – 2 digits of the month, with leading zero
- d – 2 digits of the day, with leading zero
- H – 2 digits of the hour, with leading zero, 24 hours
- i – 2 digits of the minute, with leading zero
- s – 2 digits of the second, with leading zero
Plugin Author
WPKube
(@wpkube)
You’re welcome, happy to hear you like it 🙂