Contact Form 7 custom tags

Contact Form 7 custom tags

Wordpress


How to Get Technical Info from Contact Form 7: Special Tags

If you’re using Contact Form 7 on your WordPress site, you may want to collect not only user data from the form, but also technical information such as IP address, browser info, and the page the form was submitted from.

What are Special Mail Tags?

These are dynamic values automatically generated at submission time. You can use them in the Mail section of your CF7 form.

List of Tags

  • [_remote_ip] — user IP address
  • [_user_agent] — browser/device info
  • [_post_url] — full page URL
  • [_post_title] — post/page title
  • [_post_id] — post/page ID
  • [_post_name] — post slug
  • [_post_author] — author name
  • [_post_author_email] — author email
  • [_date] — date of submission
  • [_time] — time of submission

Email Template Example

IP: [_remote_ip]
Browser: [_user_agent]
Page: [_post_url]
Title: [_post_title]
Author: [_post_author] ([_post_author_email])
Date: [_date] at [_time]