login redirect code example
Example 1: after login wordpress
add_filter( 'authenticate', 'myplugin_auth_signon', 30, 3 );
function myplugin_auth_signon( $user, $username, $password ) {
return $user;
}
Example 2: login redirect url
LOGIN_REDIRECT_URL = 'your_url'