filtrod 1.5.1
wp_list_pages
Opis — z kodu źródłowego
Filters the HTML output of the pages to list.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$output | string | HTML output of the pages list. |
$parsed_args | array | An array of page-listing arguments. See wp_list_pages() for information on accepted arguments. |
$pages | \WP_Post[] | Array of the page objects. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_list_pages', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_list_pages', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii