apply_filters( ‘the_password_form_incorrect_password’, string $text, WP_Post $post )

In this article

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

Description

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

Parameters

$textstring
The message shown to users when entering an invalid password.
$postWP_Post
Post object.

Source

$invalid_password      = apply_filters( 'the_password_form_incorrect_password', __( 'Invalid password.' ), $post );

Changelog

VersionDescription
6.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.