Skip to content

Instantly share code, notes, and snippets.

@sander1
Created February 17, 2017 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sander1/08f12332d85bd87b3143c5b2058a5387 to your computer and use it in GitHub Desktop.
Save sander1/08f12332d85bd87b3143c5b2058a5387 to your computer and use it in GitHub Desktop.
WordPress: Hide Author Usernames
add_action('template_redirect', 'bwp_template_redirect');
function bwp_template_redirect() {
if (is_author()) {
wp_redirect(home_url());
exit;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment