Created
July 19, 2013 07:24
-
-
Save charlieussery/6037323 to your computer and use it in GitHub Desktop.
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
$label = 'pwbox-' . rand(); | |
return '<form action="' . admin_url('admin-ajax.php') . '" method="post"><input type="hidden" name="action" value="psc-set" /> | |
<p>' . __("This content is password protected. To view it please enter your password below:", 'psc') . '</p> | |
<p><label for="' . $label . '">' . __("Password:", 'psc') . ' <input name="post_password" id="' . $label . '" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . esc_attr__("Submit", 'psc') . '" /></p> | |
</form> | |
'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment