WP HOOKS
akcjaod 3.0.0

the_widget

Args 3Plik wp-includes/widgets.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Fires before rendering the requested widget.

Parametry

ParametrTypOpis
$widgetstringThe widget's class name.
$instancearrayThe current widget instance's settings.
$argsarrayAn array of the widget's sidebar arguments.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'the_widget', 'twoja_funkcja', 10, 3 );

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

Popularne w tej kategorii