[ad_1]
Hi, I’m new to WordPress and have been navigating set up for the past few days. Quick question, is your username visible to the public? I was a bit stupid and just entered my email to be the username, and my email address contains my full name. I don’t want this visible to all. I have set a display name on my profile, but I just want to make sure the actual username is not visible also. Does the display name override the username? Thank you
[ad_2]
Yes, it will show in public for posts as Author.
Just create a new user. And use that user name as the author. Then you can make your user name the admin.
If you have admin user role, there are plugins to change author slug to be a hash of your username instead of the username itself.
Edit Author Slug is one such tool.
Do you want to hide the author username in the URL?
Try this plugin: [Admin and Site Enhancements (ASE)
](https://wordpress.org/plugins/admin-site-enhancements/)
It’s free and you can set the author URL to be random
Remove username from templates wont make your users invisible!
1. disable to view user pages, for example:
add_action(‘template_redirect’, disable_author_page’);
function disable_author_page() {
global $wp_query;
if ( is_author() ) {
wp_redirect(get_option(‘home’), 404);
exit;
}
}
2. You also need to remove users from sitemap because search engines will cache the results and list your users, see here at user contributed notes:
[https://developer.wordpress.org/reference/hooks/wp_sitemaps_add_provider/](https://developer.wordpress.org/reference/hooks/wp_sitemaps_add_provider/)
3. I also removed users from rest_endpoints, just to make sure.