Created
December 5, 2013 11:14
-
-
Save fdaciuk/7803692 to your computer and use it in GitHub Desktop.
wp_is_mobile personalizada para não usar no iPad
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function my_wp_is_mobile() { | |
if ( | |
! empty($_SERVER['HTTP_USER_AGENT']) | |
// bail out, if iPad | |
&& false !== strpos($_SERVER['HTTP_USER_AGENT'], 'iPad') | |
) return false; | |
return wp_is_mobile(); | |
} // function my_wp_is_mobile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment