Skip to content

Instantly share code, notes, and snippets.

View charlieussery's full-sized avatar

Charlie Ussery charlieussery

  • San Luis Obispo
View GitHub Profile
$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>
';