Allow Access to WordPress Dashboard only to Admin users

WORDPRESS CODE SNIPPET

This handy little code snippet immediately redirects to home page if a non admin user tries to access the WordPress dashboard.

Short URL to this page: http://p12.click/433N1