filtrod 2.8.0
get_comment_link
Opis — z kodu źródłowego
Filters the returned single comment permalink.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$comment_link | string | The comment permalink with '#comment-$id' appended. |
$comment | \WP_Comment | The current comment object. |
$args | array | An array of arguments to override the defaults. |
$cpage | int | The calculated 'cpage' value. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_comment_link', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_comment_link', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii