Redirect to Admin URL
-
I see this topic has been raised before, but the fixes are a bit technical for me to understand.
I have BuddyPress installed and custom capabilities setup. But I don’t think that is what is causing my concern.
When I switch to a user that does not have the ability to list users (subscriber), I get the cheating message and am sent to:
/wp-admin/users.php?user_switched=true
Backspacing to /wp-admin/ shows me the switch did work.
If the user is given listing capability, everything works fine, but of course you don’t want that.
So my question is, is there a filter I can use in my child functions.php file to change the page the admin gets sent to, to /wp-admin/ or /wp-admin/index.php or “admin(URL)” instead?
This seems the most logical thing to do.
Thanks in advance.
- The topic ‘Redirect to Admin URL’ is closed to new replies.