Created
June 17, 2016 11:46
-
-
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.
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
| <?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