W3cubDocs

/WordPress

apply_filters( 'the_password_form', string $output )

Filters the HTML output for the protected post password form.

Description

If modifying the password field, please note that the core database schema limits the password field to 20 characters regardless of the value of the size attribute in the form input.

Parameters

$output

(string) The password form HTML output.

Source

File: wp-includes/post-template.php

View on Trac

Changelog

Version Description
2.7.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/the_password_form