filtrod 2.3.0
get_search_query
Opis — z kodu źródłowego
Filters the contents of the search query variable.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$search | mixed | Contents of the search query variable. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'get_search_query', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'get_search_query', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii