Feature request: Redirect to custom url and back
-
Thanks a lot for this very good plugin. Does exactly what I need, with one exception:
I try to avoid the standard WordPress login form in case a restriction applies. So I used the custom url (page (php) with embedded login form). Unfortuantely the plugin does not append the current url when redirecting, so I don’t know where to go after a successful login.
Would be good to have an additional option like “Custom url & back”.For now I changed the Restriction.php file starting at line 80 and misused the “login” option:
switch ( $restriction['redirect_type'] ) { case 'login': // $redirect = wp_login_url( static::current_url() ); $redirect = $restriction['redirect_url'].'?dest='.urlencode(static::current_url()); break;
Cheers
Christian
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Feature request: Redirect to custom url and back’ is closed to new replies.