# "Discourse Username" in WP - what does it do?

**URL:** <https://meta.discourse.org/t/discourse-username-in-wp-what-does-it-do/62006>\
**Category:** WordPress\
**Created:** [May 2, 2017, 10:28pm UTC](https://meta.discourse.org/t/discourse-username-in-wp-what-does-it-do/62006 "2017-05-02T22:28:57Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [May 2, 2017, 11:00pm UTC](https://meta.discourse.org/t/discourse-username-in-wp-what-does-it-do/62006/4 "2017-05-02T23:00:43Z")

</div>

> [@omarfilip](#):
>
> Is there a better way to hide if than via CSS?

Yes, you can add something like this to your theme’s `functions.php` file:

```plaintext
add_filter( 'user_contactmethods', 'my_namespace_remove_discourse_user' );
function my_namespace_remove_discourse_user( $contact_methods ) {
    unset( $contact_methods['discourse_username'] );

    return $contact_methods;
}

```

---

_[View the full topic](https://meta.discourse.org/t/discourse-username-in-wp-what-does-it-do/62006)._
