Skip to content

Instantly share code, notes, and snippets.

@tommcfarlin tommcfarlin/1-sample-flag.php Secret
Created Mar 25, 2015

Embed
What would you like to do?
A simple way to set a query string flag in order to test coding that's executed on the server.
<?php
if ( isset( $_GET['is_test'] ) && 'true' == $_GET['is_test'] ) {
// Print out the results of your tests here
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.