Apply custom css for user role
To enqueue CSS in WordPress you can use: wp_enqueue_scripts action for the frontend login_scripts action for the login page admin_scriptsaction for the admin side, as you already know To check user’s roles you should get the user object and check the roles property. current_user_can() is function intended to check capabilities, not roles. So, to add … Read more