Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

How to capture Logged In User with Contact Form 7 4.8 & CFDB – Fix Inside

$
0
0

Replies: 0

For those wishing to capture a logged in user with CFDB and the latest CF7 the fix is extremely simple….

Add a hidden field to the form where you wish to capture the user id like this:

[hidden LoggedUser default:user_login]

You can change the LoggedUser part to whatever you wish. Save the form, clear the cache if you use one and voila! The the logged in users name will be added under its own column in the database.

  • This topic was modified 22 minutes ago by fonefixer.
  • This topic was modified 22 minutes ago by fonefixer.

Viewing all articles
Browse latest Browse all 59525

Trending Articles