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.

Option Description
default:user_login User’s login name
default:user_email User’s email address
default:user_url User’s site URL
default:user_first_name User’s first name
default:user_last_name User’s last name
default:user_nickname User’s nickname
default:user_display_name User’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.

%d bloggers like this: