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.
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
4 years ago