filtrod 1.5.0
comments_number
Opis — z kodu źródłowego
Filters the comments count for display.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$comments_number_text | string | A translatable string formatted based on whether the count is equal to 0, 1, or 1+. |
$comments_number | int | The number of post comments. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'comments_number', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'comments_number', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii