Forum Replies Created

Viewing 1 replies (of 1 total)
  • Not the cleanest thing ever but here is a solution:

    if (!function_exists('theme_the_password_form')) {
    	function theme_the_password_form( $form) {
    		if (isset($_COOKIE['wp-postpass_' . COOKIEHASH]) && get_permalink() == wp_get_referer()) {
    			$form = '<p class="error">Invalid Password. Please try again.</p>' . $form;
    		}
    		return $form;
    	}
    }
    add_filter( 'the_password_form', 'theme_the_password_form');

    hopefully that helps

Viewing 1 replies (of 1 total)