akcjaod 2.7.0
pre_get_search_form
Opis — z kodu źródłowego
Fires before the search form is retrieved, at the start of get_search_form().
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$args | array | The array of arguments for building the search form. See get_search_form() for information on accepted arguments. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_action( 'pre_get_search_form', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_action( 'pre_get_search_form', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii