Point "Create a Site" Links to Your Own Signup Page
Replaces the network's default wp-signup.php address in links and redirects with a custom page, such as a pricing or onboarding page, while keeping the real signup form available.
Opens WPIDE on
Code
if ( ! is_multisite() ) {
return;
}
$wpide_signup_url = network_home_url( '/get-started/' ); // Your signup landing page.
add_filter( 'wp_signup_location', function () use ( $wpide_signup_url ) {
return $wpide_signup_url;
} );
add_filter( 'register_url', function ( $url ) use ( $wpide_signup_url ) {
return false !== strpos( $url, 'wp-signup.php' ) ? $wpide_signup_url : $url;
} );
Notes
Set $wpide_signup_url. Visits to wp-signup.php itself still work so your custom page can link to it.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.