| | 40 | $network_site_url = network_site_url( 'wp-signup.php' ); |
| | 41 | /** |
| | 42 | * Filter the signup location for this WordPress installation. |
| | 43 | * |
| | 44 | * @since 4.3.0 |
| | 45 | * |
| | 46 | * @param string $network_site_url URL of the signup page for WordPress. |
| | 47 | */ |
| | 48 | $signup_location = apply_filters( 'wp_signup_location', $network_site_url ); |
| | 49 | $signup_location_parts = explode( '?', $signup_location ); |
| | 50 | |
| | 51 | // Redirect to the true signup location if the URL differs from default. |
| | 52 | if ( $signup_location_parts[0] !== $network_site_url ) { |
| | 53 | wp_redirect( $signup_location ); |
| | 54 | exit; |
| | 55 | } |
| | 56 | |