filtrod 3.6.0
heartbeat_send
Opis — z kodu źródłowego
Filters the Heartbeat response sent.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$response | array | The Heartbeat response. |
$screen_id | string | The screen ID. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'heartbeat_send', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'heartbeat_send', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii