WP HOOKS
filtrod 2.7.0

the_password_form

Args 3Plik wp-includes/post-template.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the HTML output for the protected post password form.

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.

Parametry

ParametrTypOpis
$outputstringThe password form HTML output.
$post\WP_PostPost object.
$invalid_passwordstringThe invalid password message.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'the_password_form', 'twoja_funkcja', 10, 3 );

function twoja_funkcja($param_1, $param_2, $param_3) {
	// Twój kod
}

Popularne w tej kategorii