Created
May 21, 2025 06:55
-
-
Save DeveloperWil/45424dddd24a853e25833b3800f471a9 to your computer and use it in GitHub Desktop.
Client WP Dashboard Makeover Blueprint: Redirect to Custom Dashboard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter('login_redirect', function($r, $rq, $u) { | |
| if (in_array('editor', $u->roles)) { | |
| return admin_url('index.php?page=client-dashboard'); | |
| } | |
| return $r; | |
| }, 10, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment