filtrod 4.3.0
wp_refresh_nonces
Opis — z kodu źródłowego
Filters the nonces to send to the New/Edit Post screen.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$response | array | The Heartbeat response. |
$data | array | The $_POST data sent. |
$screen_id | string | The screen ID. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_refresh_nonces', '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( 'wp_refresh_nonces', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii