WP HOOKS
filtrod 2.6.0

widget_links_args

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

Opis — z kodu źródłowego

Filters the arguments for the Links widget.

Parametry

ParametrTypOpis
$widget_links_argsarrayAn array of arguments to retrieve the links list.
$instancearrayThe settings for the particular instance of the widget.

Wywołanie

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

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

Popularne w tej kategorii