wpseek.com
WordPress开发者和主题制作者的搜索引擎



the_password_form_incorrect_password › WordPress过滤钩子

Since6.8.0
已弃用n/a
› apply_filters( 'the_password_form_incorrect_password', __( 'Invalid password.' )
参数: (2)
  • () text The message shown to users when entering an invalid password.
    Required: Yes
  • () post Post object.
    Required: Yes
定义在:
文档:

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

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




源码

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