filtrod 1.5.0
get_comment_author
Opis — z kodu źródłowego
Filters the returned comment author name.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$comment_author | string | The comment author's username. |
$comment_id | string | The comment ID as a numeric string. |
$comment | \WP_Comment | The comment object. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_comment_author', '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( 'get_comment_author', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii