filtrod 2.7.0
the_password_form
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
| Parametr | Typ | Opis |
|---|---|---|
$output | string | The password form HTML output. |
$post | \WP_Post | Post object. |
$invalid_password | string | The 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
}
// 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