Usage:
This filter hook enables you to influence and manipulate the “redirect” URL that is applied each time a user logs in.
By using this filter hook, you will be able to override the plugin’s default behavior.
Parameters:
iMember360 will pass the following parameters to your action function:
| $redirect_url | The current redirect URL. |
| $pUSER | The current user object. |
Example:
function my_i4w_login_redirect($redirect_url, $pUSER) {
// In this simple example, we redirect
// the user to a different page
return 'http://example.com/my-custom-login-page';
}
add_filter('i4w_login_redirect', 'my_i4w_login_redirect', 10, 2);