filtrod 4.0.0
term_search_min_chars
Opis — z kodu źródłowego
Filters the minimum number of characters required to fire a tag search via Ajax.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$characters | int | The minimum number of characters required. Default 2. |
$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( 'term_search_min_chars', '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( 'term_search_min_chars', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii