PHP webdeveloper and frontend developer

How to make a custom protected page in WordPress

Category : PHP, Wordpress · by Jul 3rd, 2013

The default password form uses this message: “This post is password protected. To view it please enter your password below:”.

You can use a custom text to display on a protected page by using a filter in WordPress. Add this code to your theme’s functions.php file:



(1) Comment

6 years ago · Reply

Not working, 3.8.1

Leave a Reply

Your email address will not be published. Required fields are marked *