filtrod 2.8.0
widget_form_callback
Opis — z kodu źródłowego
Filters the widget instance's settings before displaying the control form.
Returning false effectively short-circuits display of the control form.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$instance | array | The current widget instance's settings. |
$widget | \WP_Widget | The current widget instance. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'widget_form_callback', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'widget_form_callback', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii