Custom redirect user after login based on metadata
This should do the trick. Add this filter to your plugins functions file/class. This will run automatically every time anyone logs in, if they are a user who has the ‘Vip’ plan, they will be redirected to the /vip/ page. otherwise they will be redirected to the default. add_filter( ‘login_redirect’, function( $redirect_to, $request, $user ) … Read more