-
-
Save aristath/6037489 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 email us here: <a href="mailto:charlie@example.com">charlie@example.com</a> and we'll email you the password", '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