filtrod 2.6.0
widget_title
Opis — z kodu źródłowego
Filters the widget title.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$title | string | The widget title. Default 'Pages'. |
$instance | array | Array of settings for the current widget. |
$id_base | mixed | The widget ID. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'widget_title', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'widget_title', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii