Last active
December 20, 2015 12:48
-
-
Save jwestbrook/6133453 to your computer and use it in GitHub Desktop.
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 | |
/** Check for a valid GET parameter before rendering the rest of the page | |
* otherwise send a 404 header to prevent bots | |
*/ | |
if(!isset($_GET['YOUR_FAVORITE_PARAMETER'])) | |
{ | |
header("HTTP/1.0 404 Not Found"); | |
exit; | |
} | |
/* | |
SNIP | |
*/ | |
?> | |
<form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php?YOUR_FAVORITE_PARAMETER=1', 'login_post' ) ); ?>" method="post"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment