How to change Default Display Name Publicly As for all existing users in WordPress?

Posted by Pinki | Updated on

Want to change Default Display Name Publicly As for all existing users in WordPress? Problem with using the admin_head hook is that it doesn’t work for users who don’t use the admin system. Also, my attempts to implement the solution posted by Marty failed because it doesn’t seem that the display_name can be updated by update_user_meta() you have to use wp_update_user().

Use following code in your theme’s functions.php file OR in site specific plugin.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers