WP HOOKS
filtrod 4.2.0

customize_save_response

Args 2Plik wp-includes/class-wp-customize-manager.phpDokumentacja WP ↗

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

ParametrTypOpis
$responsearrayAdditional information passed back to the 'saved' event on <code>wp.customize</code>.
$manager\WP_Customize_ManagerWP_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
}

Popularne w tej kategorii