filtrod 1.5.0
get_comment_text
Opis — z kodu źródłowego
Filters the text of a comment.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$comment_text | string | Text of the comment. |
$comment | \WP_Comment | The comment object. |
$args | array | An array of arguments. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_comment_text', '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_text', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii