Title: Shortcode for using logged in user
Last modified: August 24, 2016

---

# Shortcode for using logged in user

 *  [toolman87](https://wordpress.org/support/users/toolman87/)
 * (@toolman87)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/shortcode-for-using-logged-in-user/)
 * Hello,
 * I want to send out an email with form data and I’m just missing a function to
   include the user which is logged in to be included in the email message.
 * Is there shortcode or some easy way to do this?
 * For example this is the message…
 * You have received a form submission from (USERNAME)
    FILEDS….
 * I’m already getting all the fields just need the username.
 * Thanks for the help!

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

 *  [Rajesh Soni](https://wordpress.org/support/users/rajeshsoni/)
 * (@rajeshsoni)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/shortcode-for-using-logged-in-user/#post-6027298)
 * What generates the email – custom function, plugin?
 *  Thread Starter [toolman87](https://wordpress.org/support/users/toolman87/)
 * (@toolman87)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/shortcode-for-using-logged-in-user/#post-6027303)
 * I’m using the email function from the Ninja Form plugin
 *  [Rajesh Soni](https://wordpress.org/support/users/rajeshsoni/)
 * (@rajeshsoni)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/shortcode-for-using-logged-in-user/#post-6027306)
 * Check:
 * [http://docs.ninjaforms.com/article/36-emails-actions](http://docs.ninjaforms.com/article/36-emails-actions)
   
   [http://docs.ninjaforms.com/article/206-actions-email](http://docs.ninjaforms.com/article/206-actions-email)
 *  Thread Starter [toolman87](https://wordpress.org/support/users/toolman87/)
 * (@toolman87)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/shortcode-for-using-logged-in-user/#post-6027309)
 * Thanks, it looks like i’ll have to create a field with like contact name for 
   this to work. I was hoping there was another way since i already have the users
   register through Ultimate Member plugin which has there name already.
 * But no biggy this will work.
 * Thanks!

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

The topic ‘Shortcode for using logged in user’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [toolman87](https://wordpress.org/support/users/toolman87/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/shortcode-for-using-logged-in-user/#post-6027309)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
