With this small snippet you are able to show the Admin Bar to website’s administrators only. No other user will be able to see the Admin Bar after logging in. This snippet is very useful if y
With this snippet you’re able to check if the coming user on your website is using a phone/mobile or not. This function will return True or False so that you can detect it. If response is Tru
With this Snippet and code, you can easily check if any specific sidebar or widget area has any widget in it or not. This can be useful if you want to hide that widget area if there’s no widg
This small and quick snippet can be use to check if user on your website is logged in or not. You can show specific content for logged in users too with this little check.
Add custom class in body of a WordPress website. You can add the class based on different conditions.
With this snippet you can restrict the WordPress dashboard to administrator roles user only.
In WordPress we have the ability to add information about ourselve in profile page. To show this information about the user, we have to use below snippet.