filtrod 4.5.0
customize_nav_menu_searched_items
Opis — z kodu źródłowego
Filters the available menu items during a search request.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$items | array | The array of menu items. |
$args | array | Includes 'pagenum' and 's' (search) arguments. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'customize_nav_menu_searched_items', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'customize_nav_menu_searched_items', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii