When users enter a wrong or expired password, they normally receive an error message like “Please enter the correct password!”.
In some cases, you might want to notify your users that the content is still locked due to expired passwords. This happens when the password usage reaches the limit, or the password is only available for a certain period of time.
In this article, we will guide you on how to show a custom message or redirect users to a specific page when the password entered expires.
- Password Protect WordPress Lite version 1.4.4 or greater
- Password Protect WordPress Pro version 1.2.2 or greater
- PPWP Password Suite version 1.2.1 or greater
Show expired password message
Once you install and activate our plugins, go to Password Protect WordPress >> Advanced tab from your admin dashboard.
Simply enable “Show Expired Password Message” option.
When users enter an expired password, they will receive the message below.
Customize expired password message
You can change this message to whatever you want via WordPress Customizer.
Similar to editing the wrong password message, go to Appearance >> Customize from your WordPress dashboard.
Choose Password Protect WordPress Form on the left sidebar.
Choose Error Message section.
Scroll down to the bottom of this section, you will see the option to edit the expired password message.
Please keep in mind that:
- The values changed via WordPress Customizer are associated with the current theme. So if you are to change your theme, all the customizations will return to the default settings.
- If you copy a text from Microsoft Word or other website editors into this WYSIWYG Editor, you should clear its format before adjusting its style including color, font size, or font-weight.
Redirect users to a specific URL
If you want to encourage users to take action when a password expires, like submitting a contact form or buying a product, to get a new password (instead of simply showing a message), choose “Redirect users to specific URL” from the dropdown.