To change “password protected page” text

[ad_1]

Hello @rosco666

If you have a way to add some custom PHP code to the site (either a theme functions.php or a custom plugin) this can be achieved using the the_password_form filter hook.

add_filter( 'the_password_form', 'reitclubvonnordheim_custom_function_the_password_form' );
function reitclubvonnordheim_custom_function_the_password_form( $output ) {
	$output = str_replace(
		'This content is password protected. To view it please enter your password below:',
		'Dieser Inhalt ist passwortgeschützt. Um es anzuzeigen, geben Sie bitte unten Ihr Passwort ein:',
		$output
	);

	return $output;
}

(Please excuse the German text if it is incorrect, I used Google Translate)

Jonathan Bossenger thank you a lot for your answer.
I am actually scared to put hands on the php files (i am a total incompetent and i´ve build the website following online tutorials and this forum), i was hoping i was just missing some option already included in wordpress.
At the moment i am using the plugin passster instead of the wordpress included password protection and it is working good

Thank you again

Rosco

  • This reply was modified 1 hour, 5 minutes ago by rosco666.
  • This reply was modified 1 hour, 4 minutes ago by rosco666.

No problem, there are multiple ways to achieve the same result, I’m glad you found something that works for you.

If your question has been answered, we would love if you would mark this topic as resolved in the sidebar. This helps our volunteers find the topics that still need attention and more people will get helped, possibly like you did.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer