Conditionally load CSS/JS/PHP in wp-admin if using a mobile device
I'm looking for a way to conditionally load different scripts if the user is accessing the admin area from a mobile device.
In my case I'm looking to restrict the user to just be able to make new posts, so if you log in to the admin area from a mobile device you're redirected to the post listing and the admin menu isn't even available.
Ideas?