Last active
July 31, 2022 21:09
-
-
Save brianleejackson/bebf8b667a5d6ada8c3deb5816789ff7 to your computer and use it in GitHub Desktop.
Testing mobile cache buckets. This snippet echos out text only on desktop in the footer. If you see it on mobile, it means your mobile cache bucket isn't configure properly.
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
add_action('wp_footer', function() { | |
if(!wp_is_mobile()) { | |
echo 'hello world'; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment