Created
May 7, 2022 01:11
-
-
Save ashlie-elizabeth-moore/a242a0b26ec9a9ee008f598d17d58b39 to your computer and use it in GitHub Desktop.
Different Admin Themes for Multisite
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
| //Different Admin Themes for Multisite | |
| add_filter('get_user_option_admin_color', 'change_admin_color'); | |
| function change_admin_color($result) { | |
| //site 1 ---> | |
| if(get_current_blog_id() === 2) { | |
| return 'sunrise'; | |
| } | |
| //site 2 ---> | |
| elseif(get_current_blog_id() === 4) { | |
| return 'ectoplasm'; | |
| } | |
| //site 3 ---> | |
| elseif(get_current_blog_id() === 5) { | |
| return 'default'; | |
| } | |
| else { | |
| return $result; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment