Skip to content

Shamim's Plugins

  • PRO Plugins
    • Front End PM PRO
  • Docs
    • Front End PM
    • Front End PM PRO
  • Support
    • Front End PM PRO
  • Login
  • 0  Items -  $0.00
Home » Forums » Front End PM PRO » Adding sender's user_login or um url profile tag to Email.

Adding sender's user_login or um url profile tag to Email.


Home › Forums › Front End PM PRO › Adding sender's user_login or um url profile tag to Email.

This topic is: Resolved

Tagged: email, Tag, user_login

  • This topic has 2 replies, 2 voices, and was last updated 6 years, 1 month ago by c-alle.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 2, 2019 at 3:13 am #26389
    c-alle
    Participant

    How can I include the sender’s user_login or the sender’s profile in ultimate member (Example http://www.mysite.it/user/user_login) to the e-mail notification sent to the recipient?

    I read this post https://www.shamimsplugins.com/docs/front-end-pm-pro/customization-front-end-pm-pro/add-own-email-tag/ but I am not able to modify it for reach my goal.

    Thanks.

    July 2, 2019 at 9:13 am #26414
    Shamim Hasan
    Keymaster

    Please add following code in your theme’s (chilld theme’s if you are using) functions.php

    add_filter( 'fep_eb_email_legends', function( $legends, $mgs ){
    	$legends['sender_username'] = array(
    		'description'  => __('Sender Username', 'front-end-pm'),
    		'where'        => array( 'newmessage', 'reply' ),
    		'replace_with' => ! empty( $mgs->mgs_author ) ? fep_get_userdata( $mgs->mgs_author, 'user_login', 'id' ) : '',
    	);
    	return $legends;
    }, 10, 2);
    
    July 2, 2019 at 1:47 pm #26430
    c-alle
    Participant

    Thanks, it works very well. 🙂

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.


Wordpress Plugins

  • Front End PM PRO
  • Front End PM
  • FEP Contact Form
  • Multisite User Sync
  • Custom Functions Plugin

Osclass Plugins

  • Simple Item Moderation
  • Simple Social Share
  • Two Factor Authentication
  • Password Ad Management
  • noCaptcha reCaptcha
  • Simple Infinite Scroll

Links

  • Contact us
  • Hire
  • Privacy Policy
  • Terms and Conditions

· © 2025 Shamim's Plugins ·

Back to top