WP HOOKS
filtrod 1.5.1

wp_list_pages

Args 3Plik wp-includes/post-template.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the HTML output of the pages to list.

Parametry

ParametrTypOpis
$outputstringHTML output of the pages list.
$parsed_argsarrayAn 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
}

Popularne w tej kategorii