WP HOOKS
filtrod 1.2.0

author_email

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

Opis — z kodu źródłowego

Filters the comment author's email for display.

Parametry

ParametrTypOpis
$comment_author_emailstringThe comment author's email address.
$comment_idstringThe comment ID as a numeric string.

Wywołanie

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

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

Popularne w tej kategorii