• Resolved oscarfeiven

    (@oscarfeiven)


    Hi there, please can you let me know how to change the “To view this protected post, enter the password below:” wording on the password page. Thanks.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter oscarfeiven

    (@oscarfeiven)

    I should also mention that I have tried adding the following code to my child functions.php file but there was no change. I have also tried using a string editor plugin called ‘say what’ which still didn’t update the text.

    __

    add_filter('the_password_form', 'doannhien_password_form');
    function doannhien_password_form ($output) {
    
        $original_string = 'To view this protected post, enter the password below:';
        $translated_string = 'MY TRANSLATED STRING';
        $output = str_replace($original_string, $translated_string, $output);
        return $output;
    }
    • This reply was modified 4 years, 8 months ago by oscarfeiven.
    Plugin Author Andreas Münch

    (@andreasmuench)

    Hi @oscarfeiven ,

    normally, this snippet should work.

    To find out why it doesn′t on your page is debugging work that I cannot do for you, sorry!
    This is also not really related to this plugin, but to the default password protection functionality in WordPress.

    You should try to find a developer who can do that.

    Good luck!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change “To view this protected post, enter the password below:” wording’ is closed to new replies.