WP HOOKS
filtrod 2.8.0

widget_archives_dropdown_args

Args 2Plik wp-includes/widgets/class-wp-widget-archives.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the arguments for the Archives widget drop-down.

Parametry

ParametrTypOpis
$argsarrayAn array of Archives widget drop-down arguments.
$instancearraySettings for the current Archives widget instance.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'widget_archives_dropdown_args', 'twoja_funkcja', 10, 2 );

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

Popularne w tej kategorii