WP HOOKS
filtrod 6.8.0

the_password_form_incorrect_password

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

Opis — z kodu źródłowego

Filters the invalid password message shown on password-protected posts.

The filter is only applied if the post is password-protected.

Parametry

ParametrTypOpis
$textstringThe message shown to users when entering an invalid password.
$post\WP_PostPost object.

Wywołanie

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

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

Popularne w tej kategorii