Title: Get user data from session
Last modified: September 7, 2017

---

# Get user data from session

 *  Resolved [davicode](https://wordpress.org/support/users/davicode/)
 * (@davicode)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/get-user-data-from-session/)
 * Hi everyone! I’m in the middle of a project for my university and I encountered
   a problem.
    I was wondering if it is any way to get the Name and Surname for 
   the person who is already logged in, and pass it automatically to the contact
   form or to the email that is sent after you press send. Is there any way to do
   this?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Андрій](https://wordpress.org/support/users/andxbes/)
 * (@andxbes)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/get-user-data-from-session/#post-9476070)
 * You need write own module as plugin . You can use as template ready, suitable
   module from “\wp-content\plugins\contact-form-7\modules\” example like number.
   php
 *  [Андрій](https://wordpress.org/support/users/andxbes/)
 * (@andxbes)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/get-user-data-from-session/#post-9476422)
 * I even decided to implement it for lastname and firstname. For donor unit took“
   number.php”
    [https://github.com/andxbes/CF-7_UserField](https://github.com/andxbes/CF-7_UserField)
 * plugin zip file [https://github.com/andxbes/CF-7_UserField/archive/master.zip](https://github.com/andxbes/CF-7_UserField/archive/master.zip)
    -  This reply was modified 8 years, 9 months ago by [Андрій](https://wordpress.org/support/users/andxbes/).
 *  Thread Starter [davicode](https://wordpress.org/support/users/davicode/)
 * (@davicode)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/get-user-data-from-session/#post-9480955)
 * Fast and easy, I just learned a little better on how wordpress works even if 
   i’m new to it.
    Thank you very much for your help!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Get user data from session’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [davicode](https://wordpress.org/support/users/davicode/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/get-user-data-from-session/#post-9480955)
 * Status: resolved