PHP Browser Detection is a WordPress plugin used to detect a user's browser. Please report any bugs on the support forums.
As of April 2026, PHP Browser Detection is a WordPress php plugin with 600 active installations and a 4.1/5 rating from 16 reviews. It has been downloaded 46K+ times in total. Requires WordPress false+ and PHP false+. Available on WordPress.org since 2010. Last updated 10 years ago — may have compatibility concerns. Top alternative: WPCode – Insert Headers and Footers +….
Version 3 adds support for is_tablet(), is_desktop(), and is_browser() as well as numerous bug fixes and code improvements. As of version 3.1.2 automatic updates of browscap.ini are disabeld until we can deal with memory usage issues.
PHP Browser Detection is a WordPress plugin used to detect a user’s browser. It can be used to send conditional CSS files for Internet Explorer, display different content or custom messages anywhere on the page, or to swap out Flash for an image for iPhones.
Template Tags:
Test for specific browsers:
$version is optional. Include a major version number, a single integer – 3,4,5, etc… Or leave it empty to test for any version.
<?php if(is_firefox($version)) { /* your code here */ }; ?>
<?php if(is_safari($version)) { /* your code h…| WordPress | false+ requiredTested up to 4.3.34 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.