Filter hook 'the_password_form'

in WP Core File wp-includes/post-template.php at line 1790

Description

Filters the HTML output for the protected post password form. 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.

Occurrences

Filename Line Number
wp-includes/post-template.php 1790

Parameters

Type Name Description
string $output The password form HTML output.
WP_Post $post Post object.

PHP Doc

/**
	 * Filters the HTML output for the protected post password form.
	 *
	 * 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.
	 *
	 * @since 2.7.0
	 * @since 5.8.0 Added the `$post` parameter.
	 *
	 * @param string  $output The password form HTML output.
	 * @param WP_Post $post   Post object.
	 */