WordPress has a simple feature to password protect posts with a simple password rather than a login. This form of password protection is not as secure as login protection, but it can be good for hiding non-sensitive internal documents, membership-only content created on a different platform, sharing coupons, etc.

Example of a password field with those dots

So long as we’re saying, “This stuff isn’t actually all that important anyway,” why not remove those secretive password dots and just let people see what they type? Sure, it’s less secure – we’ve already made the decision that this stuff is less secure – but it’s also more user-friendly to display the password.

So today I wrote a simple jquery function to switch the password protected field’s type from “password” to “text”:

$("input[type='password'][name='post_password']").get(0).type = 'text';

You’ll need to load that in your theme’s header.php, footer.php, or a functional plugin, of course.

Is this helpful?