Und 6 Jahre später...(Wordpressversion 4.9.6.)...ich hab´s jetzt so gelöst:
add_action( 'wp', 'post_pw_sess_expire' );
function post_pw_sess_expire() {
if ( isset( $_COOKIE['wp-postpass_' . COOKIEHASH] ) )
// Setting a time of 0 in setcookie() forces the cookie to expire with the session
setcookie('wp-postpass_' . COOKIEHASH, '', 0, COOKIEPATH);
}
In der functions.php meines Themes.
Denn weder existiert eine wp-pass.php noch wurde ich in der wp-login.php fündig.
Ich spreche aber auch nur sehr gebrochen php ;)
Danke an Dietmar Janowski [plain]https://www.dietmarjanowski.de/wordpress/?p=1…='functions.php'[/plain]