filtrod 1.2.0
comment_email
Opis — z kodu źródłowego
Filters the comment author's email for display.
Care should be taken to protect the email address and assure that email harvesters do not capture your commenter's email address.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$comment_author_email | string | The comment author's email address. |
$comment | \WP_Comment | The comment object. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'comment_email', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'comment_email', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii