Title: sr3's Replies | WordPress.org

---

# sr3

  [  ](https://wordpress.org/support/users/sr3/)

 *   [Profile](https://wordpress.org/support/users/sr3/)
 *   [Topics Started](https://wordpress.org/support/users/sr3/topics/)
 *   [Replies Created](https://wordpress.org/support/users/sr3/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/sr3/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/sr3/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/sr3/engagements/)
 *   [Favorites](https://wordpress.org/support/users/sr3/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Public name/ Author name](https://wordpress.org/support/topic/public-name-author-name/)
 *  Thread Starter [sr3](https://wordpress.org/support/users/sr3/)
 * (@sr3)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/public-name-author-name/#post-7035325)
 * I don’t want to change the display name manually for every user. I’m looking 
   for some code to set the default display name automatically to the wordpress 
   username.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Public name/ Author name](https://wordpress.org/support/topic/public-name-author-name/)
 *  Thread Starter [sr3](https://wordpress.org/support/users/sr3/)
 * (@sr3)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/public-name-author-name/#post-7035143)
 * With this code I could remove the author link
 *     ```
       add_filter( 'get_comment_author_link', 'rv_remove_comment_author_link', 10, 3 );
       function rv_remove_comment_author_link( $return, $author, $comment_ID ) {
       	return $author;
       ```
   
 * But I still don’t know how to show the username instead of the full name?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Add logout link to submenu](https://wordpress.org/support/topic/add-logout-link-to-submenu/)
 *  Thread Starter [sr3](https://wordpress.org/support/users/sr3/)
 * (@sr3)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/add-logout-link-to-submenu/#post-6952941)
 * I couldn’t add it to the submenu, so I added it as the last item of my main-menu.
   But now it’s working.
 * I added the following code at the end of the functions.php of my child-theme:
 *     ```
       add_filter('wp_nav_menu_items', 'add_login_logout_link', 10, 2);
       function add_login_logout_link($items, $args) {
       	ob_start();
       	wp_loginout('index.php');
       	$loginoutlink = ob_get_contents();
       	ob_end_clean();
       	$items .= '<li>'. $loginoutlink .'</li>';
       	return $items;
       }
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)