Names in user list | WordPress.org

[ad_1]

The plugin uses display_name by default. All users can choose themselves how to display their name on the website from their profile:

Not sure how WordPress determines the default value for display name in your install, though.

If you want to overwrite the behavior via the extension plugin, then I assume changing the return statement (line 22) to the following should do. At least, if your users filled in these values during registration and the values are stored in the WP_User object.

return $user->first_name . ' ' . $user->last_name;

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer