Last active
March 20, 2024 14:34
-
-
Save alanef/9569f77c285c7b30ba103c4ac5399883 to your computer and use it in GitHub Desktop.
Detect WP Playground
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 | |
if ( 'PHP.wasm' === $_SERVER['SERVER_SOFTWARE'] && 'playground.wordpress.net' === $_SERVER['HTTP_HOST'] ) { | |
// inside playground.wordpress.net | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment