wpseek.com
A WordPress-centric search engine for devs and theme authors



the_password_form_incorrect_password › WordPress Filter Hooks

Since6.8.0
Deprecatedn/a
apply_filters( 'the_password_form_incorrect_password', __( 'Invalid password.' )
Parameters: (2)
  • () text The message shown to users when entering an invalid password.
    Required: Yes
  • () post Post object.
    Required: Yes
Defined at:
Codex:

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

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




Source

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