User login redirects

Login redirect depend on user role, by default it is:

  • WP dashboard for administrator, shop-manager, editor and author roles.
  • WooCommerce my account page for customer and subscriber roles. This page is set on WooCommerce > Settings > Accounts > My Account Page.
  • Employer dashboard page for employer role, set in Job Listings > Settings > Pages > Job Dashboard Page.
  • Candidate dashboard page for candidate role, set in Rersumes > Settings > Pages > Candidate Dashboard Page.

If you want to customize these pages, add this code to the end of child theme functions.php file (Appearance > Editor):

add_filter( 'woocommerce_login_redirect', 'ROLE_custom_redirect', 10, 2 );
function ROLE_custom_redirect( $redirect, $user ) {
        $role = $user->roles[0];
	if( $role == 'ROLE' ) return 'URL';
}

Replace ROLE with a role name (lines 1, 2, 4) and URL (line 4) with your link in the above code. Do not remove quotes where they are presented.

Still need help? Create support ticket Create support ticket