Apps Ballance Cash_2 Chat Checkout Click Code Cog_Wheels Compose_email Conference Contacts Earth Edit_File_1_ Email Email_2 File Folder_2 Gift Group Group_2 Help ID ID_2 Key Keys Laptop_Store Like_1_ Link Lock Log_Out Map Marketing Mobile_UI Navigation POS Partnership Profile Safe_2 Search_User Secure_Files Settings Share Shield Shield_2 Shopping_Cart Support_Male Trash Type_pin User_female User_male logo copy

How to redirect users on login and registration based on user roles

Iain Poulson avatar
Iain Poulson Last updated on September 26, 2022

By utilizing the wpum_redirect_after_login filter, you can create a custom function that can redirect your users upon logging in and registering based on their roles.

To do so, you can proceed by using the snippet below:

<script src=”https://gist.github.com/wp-user-manager/e00b8253c7719b7ef6ecd266495eb57e.js”></script>

WP User Manager logo

Get Started with the Best WordPress Membership Plugin Today

Connect, Manage and Build your Membership Site

Need more help?

If you still didn't find an answer you can always contact us

Submit a ticket