Title: jheind's Replies | WordPress.org

---

# jheind

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

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

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Abbreviate Comment Author](https://wordpress.org/support/topic/abbreviate-comment-author/)
 *  Thread Starter [jheind](https://wordpress.org/support/users/jheind/)
 * (@jheind)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/abbreviate-comment-author/#post-6861181)
 * I figured it out, I think. I found a snippet of code that removed the comment
   author and then modified it to just manipulate the author’s name. I placed it
   in my child theme’s functions.php and it did what I wanted it to.
 *     ```
       if ( ! function_exists( 'abbreviate_comment_author' ) ) :
   
           function abbreviate_comment_author( $author ){
               list($author_first, $author_second) = explode(' ',$author, 2);
               $author_second = $author_second[0] . '.';
               $author = $author_first . ' ' . $author_second;
               return $author;
       }
       add_filter( 'get_comment_author', 'abbreviate_comment_author' );
       add_filter( 'comment_author_rss', 'abbreviate_comment_author' );
   
       endif;
       ```
   

Viewing 1 replies (of 1 total)