워드프레스에서 댓글 표시 이름을 '성 이름'으로 변경하는 방법 add_filter( 'comment_author', 'custom_comment_author', 10, 2 ); function custom_comment_author( $author, $commentID ) { $comment = get_comment( $commentID ); $user = get_user_by( 'email', $comment->comment_author_email ); if( !$user ): return $author; else: $firstname = get_user_meta( $user->id, 'first_name', true ); $lastname = get_user_meta( $user->id, 'last_..