Setting default values to the logged-in user

You may need to create a contact form targeted at users with accounts on your WordPress site. You already have basic information about the user (name, e-mail, etc.) so asking users for this would be redundant.

You can set the logged-in user’s information as the default value by adding several options to a text field.

default:user_loginUser’s login name
default:user_emailUser’s email address
default:user_urlUser’s site URL
default:user_first_nameUser’s first name
default:user_last_nameUser’s last name
default:user_nicknameUser’s nickname
default:user_display_nameUser’s display name


Your Name: [text* your-name default:user_display_name]
Your E-mail: [email* your-email default:user_email]

Users who are logged in will notice that the basic information is already completed.

Just another contact form plugin for WordPress. Simple but flexible.