the_password_form
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( 'the_password_form', string $output, WP_Post $post, string $invalid_password )
Описание
При изменении поля пароля учтите, что схема базы данных WordPress ограничивает поле пароля 255 символами независимо от значения атрибутов minlength или maxlength либо иной проверки, которая может быть добавлена к полю ввода.
Оригинал (английский)
If modifying the password field, please note that the WordPress database schema limits the password field to 255 characters regardless of the value of the minlength or maxlength attributes or other validation that may be added to the input.
Фильтруемое значение
Параметры
$output
string
обязательный
$post
WP_Post
обязательный
$invalid_password
string
обязательный
Исходный код
wp-includes/post-template.php:1833
return apply_filters( 'the_password_form', $output, $post, $invalid_password );
История изменений
| Версия | Описание |
|---|---|
| 6.8.0 | Added the $invalid_password parameter. |
| 5.8.0 | Added the $post parameter. |
| 2.7.0 | Introduced. |

