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.
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community
is_admin(). It checks if you're viewing an Admin page, means the backend.
is_admin() to check if the the current page is an administration page. Despite its name this is not a user role check. It returns always
FALSE on front end, no matter what role the user has.