Skip to content

Instantly share code, notes, and snippets.

@sareiodata
Created September 10, 2013 08:58
Show Gist options
  • Save sareiodata/6506781 to your computer and use it in GitHub Desktop.
Save sareiodata/6506781 to your computer and use it in GitHub Desktop.
add_action( 'init', 'wppb_redirect_wpsignup' );
function wppb_redirect_wpsignup(){
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
if ( strpos( $actual_link, '/wp-signup.php' ) !== false ) {
wp_redirect( "http://testserver29.com/multisites/blog1/register/" );
exit();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment