filtrod 2.6.0
comments_per_page
Opis — z kodu źródłowego
Filters the number of comments listed per page in the comments list table.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$comments_per_page | int | The number of comments to list per page. |
$comment_status | string | The comment status name. Default 'All'. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'comments_per_page', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'comments_per_page', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii