filtrod 1.2.0
comment_author
Opis — z kodu źródłowego
Filters the comment author's name for display.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$comment_author | string | The comment author's username. |
$comment_id | string | The comment ID as a numeric string. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'comment_author', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'comment_author', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii