filtrod 1.5.0
get_comment_excerpt
Opis — z kodu źródłowego
Filters the retrieved comment excerpt.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$comment_excerpt | string | The comment excerpt text. |
$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_excerpt', '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_excerpt', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii