WP HOOKS
filtrod 2.1.0

wp_dropdown_pages

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

Opis — z kodu źródłowego

Filters the HTML output of a list of pages as a dropdown.

Parametry

ParametrTypOpis
$outputstringHTML output for dropdown list of pages.
$parsed_argsarrayThe parsed arguments array. See wp_dropdown_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_dropdown_pages', 'twoja_funkcja', 10, 3 );

function twoja_funkcja($param_1, $param_2, $param_3) {
	// Twój kod
}

Popularne w tej kategorii