Title: current user name
Last modified: May 31, 2021

---

# current user name

 *  Resolved [VR Webs](https://wordpress.org/support/users/net4earning/)
 * (@net4earning)
 * [5 years ago](https://wordpress.org/support/topic/current-user-name/)
 * i’m using this shortcode to create a msg form, in the subject i want to show 
   name of the curent user insted of the post title how to do that
    [fep_shortcode_new_message_form
   to=”{current-post-author}” subject=”**{current-post-title}**” heading=”Contact”]
 * thanks in advance

Viewing 1 replies (of 1 total)

 *  Plugin Author [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [5 years ago](https://wordpress.org/support/topic/current-user-name/#post-14524346)
 * Then you can add link directly in php code.
    eg.
 *     ```
       <a class="text-link" href="<?php echo fep_query_url('newmessage', array('fep_to' => get_the_author_meta( 'user_nicename' ), 'message_title' => fep_user_name( get_current_user_id() ) ) ); ?>">Send Message</a>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘current user name’ is closed to new replies.

 * ![](https://ps.w.org/front-end-pm/assets/icon-256x256.gif?rev=2309447)
 * [Front End PM](https://wordpress.org/plugins/front-end-pm/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/front-end-pm/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/front-end-pm/)
 * [Active Topics](https://wordpress.org/support/plugin/front-end-pm/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/front-end-pm/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/front-end-pm/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/current-user-name/#post-14524346)
 * Status: resolved