Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
In my application, i have one form.
Now if user is in front end i want to display the title but if he is in back end i do not want to display it.
I do not want to check it based on user role.
Use is_admin(). It checks if you're viewing an Admin page, means the backend.
Use is_admin() to check if the the current page is an administration page. Despite its name this is not a user role check.
6 years, 8 months ago