mbr/login/redirect
Usage
This filter hook enables you to apply your own redirect url upon a successful login.
Parameters
Parameters | Description |
---|---|
$redirect_url | Variable containing the current redirect URL. |
$wp_user | The standard WordPress user object for the user who just logged in. |
Examples
- Example 1
function my_mbr_login_redirect($redirect_url, $wp_user) {
// In this simple example, we redirect
// the user to a different page
return 'http://example.com/my-custom-login-page';
}
add_filter('mbr/login/redirect', 'my_mbr_login_redirect',10,2);