filtrod 6.1.0
ajax_term_search_results
Opis — z kodu źródłowego
Filters the Ajax term search results.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$results | string[] | Array of term names. |
$taxonomy_object | \WP_Taxonomy | The taxonomy object. |
$search | string | The search term. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'ajax_term_search_results', '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( 'ajax_term_search_results', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii