filtrod 3.6.0
get_comments_link
Opis — z kodu źródłowego
Filters the returned post comments permalink.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$comments_link | string | Post comments permalink with '#comments' appended. |
$post | int | \WP_Post | Post ID or WP_Post object. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_comments_link', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_comments_link', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii