filtrod 2.7.0
post_comments_link
Opis — z kodu źródłowego
Filters the formatted post comments link HTML.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$post_reply_link | string | The HTML-formatted post comments link. |
$post | int | \WP_Post | The post ID or WP_Post object. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'post_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( 'post_comments_link', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii