Last active
July 29, 2022 07:39
-
-
Save mikeott/a2119288e4d59a5a6fa3b270e27e0cde to your computer and use it in GitHub Desktop.
WordPress: If WordPress is mobile
This file contains hidden or 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 if ( wp_is_mobile() ) { | |
// Do something for mobile devices | |
} else { | |
// Do something for desktop | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment