{"id":2174,"date":"2021-07-13T06:55:24","date_gmt":"2021-07-12T22:55:24","guid":{"rendered":"https:\/\/www.intelliwolf.com\/?p=2174"},"modified":"2021-07-13T06:55:27","modified_gmt":"2021-07-12T22:55:27","slug":"get-wordpress-user-display-name","status":"publish","type":"post","link":"https:\/\/wordpress-757293-2559390.cloudwaysapps.com\/get-wordpress-user-display-name\/","title":{"rendered":"How To Get WordPress User Display Name"},"content":{"rendered":"\n
There are times when you want to personalise a user's experience, perhaps in a membership site or in a marketplace style site. In those cases, it's handy to be able to display a users name.<\/p>\n\n\n\n
You probably don't want to display the actual usernames, especially when WordPress provides a way for people to customize how they are seen on the site.<\/p>\n\n\n\n
To get a WordPress user's display name, you need to get the user object, then use $user->display_name<\/em> to access the user's name.<\/strong><\/p>\n\n\n\n That will display whatever the user has set as their display name in this field:<\/p>\n\n\n\n