filtrod 4.2.0
customize_save_response
Opis — z kodu źródłowego
Filters response data for a successful customize_save Ajax request.
This filter does not apply if there was a nonce or authentication failure.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$response | array | Additional information passed back to the 'saved' event on <code>wp.customize</code>. |
$manager | \WP_Customize_Manager | WP_Customize_Manager instance. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'customize_save_response', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'customize_save_response', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii