Created
February 17, 2017 14:20
-
-
Save sander1/08f12332d85bd87b3143c5b2058a5387 to your computer and use it in GitHub Desktop.
WordPress: Hide Author Usernames
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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