apply_filters( 'the_password_form_incorrect_password', string $text, WP_Post $post )

Filters the invalid password message shown on password-protected posts.


Description

The filter is only applied if the post is password protected.


Parameters

$text

The message shown to users when entering an invalid password.

$post

Post object.


Source

File: wp-includes/post-template.php

View on GitHub



Changelog

Changelog
Version Description
6.8.0 Introduced.