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:
<?php function custom_password_form() { global $post; $label = 'protected-page-'.( empty( $post->ID ) ? rand() : $post->ID ); $o = '<form action="' . esc_url( site_url( 'wp-login.php?action=postpass', 'login_post' ) ) . '" method="post"> ' . __( "Enter the password to see the protected page:" ) . ' <label for="' . $label . '">' . __( "Password:" ) . ' </label><input name="post_password" id="' . $label . '" type="password" size="20" /><input type="submit" name="Submit" value="' . esc_attr__( "Submit" ) . '" /> </form> '; return $o; } add_filter( 'the_password_form', 'custom_password_form' ); ?>
Not working, 3.8.1