Skip to main content

mbr/login/redirect

Usage

This filter hook enables you to apply your own redirect url upon a successful login.

Parameters

ParametersDescription
$redirect_urlVariable containing the current redirect URL.
$wp_userThe standard WordPress user object for the user who just logged in.

Examples

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);