Skip to content

Instantly share code, notes, and snippets.

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 taricco/7415380ceea2a008b2ae298cd58a9bec to your computer and use it in GitHub Desktop.
Save taricco/7415380ceea2a008b2ae298cd58a9bec to your computer and use it in GitHub Desktop.
function wsv_registration_page_redirect()
{
global $pagenow;
if (strtolower($pagenow) == 'wp-login.php' && strtolower($_GET['action']) == 'register') {
wp_redirect(home_url('/registration'));
}
}
add_filter('init', 'wsv_registration_page_redirect');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment