filtrod 2.8.0
edit_posts_per_page
Opis — z kodu źródłowego
Filters the number of posts displayed per page when specifically listing "posts".
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$posts_per_page | int | Number of posts to be displayed. Default 20. |
$post_type | string | The post type. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'edit_posts_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( 'edit_posts_per_page', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii