Password Protected

A very simple way to quickly password protect your WordPress site with a single password. Integrates seamlessly into your WordPress privacy settings.

Features include:

  • Password protect your WordPress site with a single password.
  • Allow access to feeds.
  • Integrates seamlessly into your WordPress privacy settings.
  • Works with Mark Jaquith’s Login Logo plugin.

Hooks & Filters

password_protected_login_head

This action lets you add content to the head of the login page. For example, you could add extra styles to include a background image by adding the following to your functions.php file. Note, use the CSS !important declaration to force your style to override a default WordPress style:

function my_password_protected_login_head() {
	echo '<style>
	body {
		background-image:url("' . get_stylesheet_directory_uri() . '/images/my-background-image.jpg") !important;
		background-repeat:no-repeat !important;
		background-position:top center !important;
	}
	</style>';
}
add_action( 'password_protected_login_head', 'my_password_protected_login_head' );

password_protected_wp_title

This filter lets you change the page title.

login_enqueue_scripts

This filter allows you to enqueue scripts for both the Password Protected login and main WordPress login pages.

password_protected_login_message

This filter allows you to display a login message.

password_protected_login_errors

This filter allows to to customise error messages.

password_protected_login_messages

This filter allows you to customise other messages

login_footer

This action allows you to add content to the HTML footer.

 

auto insurance atlanta
web hosting company