WordPress is very good at extending functionality using plugins and good amount of action hook and filter hooks. When you look at core of WordPress it has many variables available which can help them (WordPress Team but in fact its available to us as well) to make code conditionally based on various browser type and server type.
In this article we will see various variable which are available to detect various things like browser, mobile and webserver in WordPress. We will go one by one below:
Here are list of Browser Detection variables which will filled with TRUE when one of the following browser is detected else it will filled with FALSE.
Here are lists of Web Server Detection variables in WordPress.
This particular variable $is_mobile will set to TRUE when user is browsing website from mobile else it will be set to FALSE.
So this is the list which I have listed all variables which I have collected so far. Let me know if you have any more variables which are available in WordPress and not a part of this article.
Avinash Zala is leading various projects which deals with the various technology involved with the web. A combination of perfect technical and management skills. Avinash would like to chat with you and convert your imagination into the working system. You can get in touch with him on Facebook and Twitter.
View all posts by: Avinash