filtrod 4.7.0
wp_doing_ajax
Opis — z kodu źródłowego
Filters whether the current request is a WordPress Ajax request.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$wp_doing_ajax | bool | Whether the current request is a WordPress Ajax request. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'wp_doing_ajax', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'wp_doing_ajax', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii