akcjaod 3.0.0
the_widget
Opis — z kodu źródłowego
Fires before rendering the requested widget.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$widget | string | The widget's class name. |
$instance | array | The current widget instance's settings. |
$args | array | An 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
}
// 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