Skip to content

Instantly share code, notes, and snippets.

@rvarbanov
Created August 9, 2015 19:39
Show Gist options
  • Save rvarbanov/50b573b3ec509212aba9 to your computer and use it in GitHub Desktop.
Save rvarbanov/50b573b3ec509212aba9 to your computer and use it in GitHub Desktop.
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