Catch display_name in wordpress

1

Next, when a user registers on my site, he receives a welcome email, I am using a BuddyPress plugin that sends me this welcome email, using a filter that made it available, I am changing the e -mail welcome to display the user's display_name instead of the email (in the body of the message).

Example: Appears Hello, [email protected], and I want to appear, Hello, Eunice Negris Lima. (that's the name she signed up for)

ID | display_name
95 | Eunice Negris Lima

I would like to know how I get this information from the bank or what function I use.

Thank you.

    
asked by anonymous 19.09.2018 / 20:48

1 answer

1

You can use the global variable $ current_user-> display_name;

    
05.12.2018 / 14:10