Title: Private PM button
Last modified: November 4, 2016

---

# Private PM button

 *  Resolved [dot31](https://wordpress.org/support/users/dot31/)
 * (@dot31)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/private-pm-button-2/)
 * Hey it’s me again !
 * I want to add a button on my users profiles to send a private message.
    I used`
   echo '<div class="fep-column"><a href="' .fep_query_url( "newmessage", array("
   to" => $u->user_nicename)).'">'.__("Envoyer un message", "front-end-pm").'</a
   ></div>';` , this is working good, except it does not auto-complete the “To” ,
   it just redirects to the New Message page of your plugin. Can I get some help
   on this ? 🙂
 * PS : I translated your plugin in french, are you interested in getting those 
   translations ?
 * Best regards

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

 *  Plugin Author [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/private-pm-button-2/#post-8399797)
 * Please change `$u->user_nicename` with user_nicename of that user whose profile
   is being visited.
 * About translation: Please use [https://translate.wordpress.org/projects/wp-plugins/front-end-pm](https://translate.wordpress.org/projects/wp-plugins/front-end-pm)
   
   OR give me po file, i will upload that.
 *  [yourfishfinder](https://wordpress.org/support/users/yourfishfinder/)
 * (@yourfishfinder)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/private-pm-button-2/#post-8685375)
 * [@dot31](https://wordpress.org/support/users/dot31/) did you manage to sort this
   out in the end? thanks
 *  [mangtum](https://wordpress.org/support/users/malavikaprav/)
 * (@malavikaprav)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/private-pm-button-2/#post-9177221)
 * I used this code and it worked
    echo ‘<div class=”fep-column”> ‘user_nicename’)).'”
   >’.__(“Envoyer un message”, “front-end-pm”).’
   </div>’;
 *  [mangtum](https://wordpress.org/support/users/malavikaprav/)
 * (@malavikaprav)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/private-pm-button-2/#post-9177227)
 * I meant the code by [@dot31](https://wordpress.org/support/users/dot31/) with
   changes mentioned by the author and it worked.

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

The topic ‘Private PM button’ 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/)

 * 4 replies
 * 4 participants
 * Last reply from: [mangtum](https://wordpress.org/support/users/malavikaprav/)
 * Last activity: [8 years, 12 months ago](https://wordpress.org/support/topic/private-pm-button-2/#post-9177227)
 * Status: resolved