WordPress Code Snippet

Allow Access to WordPress Dashboard only to Admin users

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

Share this page: