Skip to main content
2 votes
Accepted

Redirect Login Based on User Role

function dashboard_redirect($url, $request, $user) { if (in_array('test_user_role', (array) $user->roles)) { $url = admin_url('users.php'); }else{ $url = admin_url('...
Chris Cox's user avatar
  • 1,633
1 vote

Force Profile link for username, and stop "Website" field on Profile from becoming offsite link atop Comments, in "Recent Comments" list, etc

Yup, there'll be no link when the user doesn't fill in that field or when leaving a comment as a guest. As far as redirecting comment links to the bbPress profile goes, popping this in your functions....
Chris Cox's user avatar
  • 1,633

Only top scored, non community-wiki answers of a minimum length are eligible