filtrod 4.2.0
customize_refresh_nonces
Opis — z kodu źródłowego
Filters nonces for Customizer.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$nonces | string[] | Array of refreshed nonces for save and preview actions. |
$manager | \WP_Customize_Manager | WP_Customize_Manager instance. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'customize_refresh_nonces', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'customize_refresh_nonces', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii