[Wordpress] Load custom Admin CSS by User IDs

MrNoLimits

Well-known member
Jul 31, 2019
497
265
63
NYC
Hello!

So what i want to do is to be able to load custom CSS on the Admin side of Wordpress depending on the User ID which is logged in.

I'm developing a website and there're certain things i'd like to forcibly hide from the dashboard in the other Admin's dashboards but I'd like to keep on my own, just to prevent them from doing something stupid like changing settings which should not be changed.

I've tried using Admin Menu Editor Pro which is here on Babiato in the Tweaks section where you can use custom CSS 12.png

But unfourtunately the usersystem filter below the top menu doesn't seems to work with the Admin CSS feature, all users get the same code no matter what.

I'm open to suggestions.

Thanks for your help!

Have a nice day/night wherever you are and stay safe! :)
 

MrNoLimits

Well-known member
Jul 31, 2019
497
265
63
NYC
Thank you for this.

That plugin allowed me to create another user role with the same capabilities as Administrator, then I switched the other admins to that role and with Admin Menu Editor Pro turns out that i was able to enable a custom CSS snippet for that role and filter all the element selectors properties that i wanted ❤
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu