Editing wp-login.php directly is only way I know:
case 'register' :
// if ( is_multisite() ) {
// Multisite uses wp-signup.php
// wp_redirect( apply_filters( 'wp_signup_location', network_site_url('wp-signup.php') ) );
// exit;
// }
Each time you update – rinse and repeat.
(Keep in mind that your user, although a member of a given site, he/she still belongs to the network. When logged in to one site he/she is logged in to all sites at the same time.)
David – That’s a bad idea.
Instead, since the redirect URL is being filtered, you should just use some code like the following (in your theme’s functions.php file, or in a PHP file within wp-content/mu-plugins):
<?php
add_filter( 'wp_signup_location', 'my_custom_signup_location' );
function my_custom_signup_location( $url ) {
return null;
}
That will cause WordPress to bail out when it tries to redirect.
I will do the functions fix for now, but is there a specific name and such that I need to call this function and something I need to add to ensure that the function is being called forth correctly, and all that noise?
Thanks for the help!
Sadness, it stops the redirection, but now I have a blank page 🙁
any thoughts on this?
Curtiss, OP still wants to return to wp-login.php?action=register.
A filter on wp_signup_location will not get him back to wp-login.php?action=register – and its regisiter user forms – only a loop because of the is_multisite condition in wp_login.php.
Editing core files is bad, but how else to return OP to wp-login.php?action=register ?
Idk 🙁 But I tried both suggestions
And I got:
1. Curtiss sugesstion = blank
2. Your suggestion = error
:C
A SAD DAY FOR OP.. :C
Thoughts on what may be going on?
Can I ask WHY you want this? What problem are you trying to solve?
I just want to use the default registration form for the multisite, and I need it to be this.
wp-signup.php IS the default registration form for Multisite.
If you just want to make it look like the generic WP from Single Site, then I’d make a custom signup page for that and use either a filter or .htaccess to redirect, forcing everyone to go there. You can’t use wp-login.php?action=register for this, but depending on exactly what you’re really trying to do (and forget what you want the URL to be for a second) we may be able to help you out.
(I ask WHY a lot because understanding your rationale helps us craft better solutions)
The thing is, I need the BAW Easy Invite Codes (needs to be BAW Easy Invite because it can generate hundreds upon thousands of invite codes) in order to protect sign up.
I have used the Redux Register Plus, and saw it’s invite codes, but they were manual, and for each site I would be generating a minimum of 1000 codes.
Aside from that, that is really my only problem.
I need the BAW Easy Invite Codes or something of a similar nature that will allow me to generate hundreds upon thousands of codes with a pre-defined prefix, tell me how much length, and all of that.
That is what I need.
The reason why I need this is because the product I sell is based off of license key sales to educational institutions.
Then you’ve actually found a bug in BAW, because according to the plugin dev, it’s supposed to work.
http://wordpress.org/support/topic/plugin-baw-easy-invitation-codes-code-expired-with-incorrect-register?replies=4
http://wordpress.org/extend/plugins/baw-invitation-codes/
I’ve tagged this for the dev, so hopefully he can explain how to make it work.
Yay I broke something C:
Curses..
Thanks for the information on that. Glad you were able to tag this to the Dev. I hope to see a solution soon :).
Thanks for the help you have provided thus far.
The best thing to start with, till he does, is to turn off other plugins and see if one of them is conflicting.