How to check if user is in back end?

Use is_admin(). It checks if you’re viewing an Admin page, means the backend.

Leave a Comment