Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sjaved87/6732de55428b5d45438104ddfb9051e3 to your computer and use it in GitHub Desktop.
Save sjaved87/6732de55428b5d45438104ddfb9051e3 to your computer and use it in GitHub Desktop.
This code snippet will redirect user from wp-signup.php on multisite to a custom page URL. Don't forget to replace Your_URL_GOES_HERE with actual target page URL.
<?php
function sjaved_redirect_user_from_wp_signup(){
global $pagenow;
if( $pagenow == 'wp-signup.php'){
wp_redirect( 'Your_URL_GOES_HERE' );
exit;
}
}
add_action('init', 'sjaved_redirect_user_from_wp_signup');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment