WP HOOKS
akcjadynamicznyod 4.4.0

customize_post_value_set_{$setting_id}

Args 2Plik wp-includes/class-wp-customize-manager.php

Opis — z kodu źródłowego

Announces when a specific setting's unsanitized post value has been set.

Fires when the WP_Customize_Manager::set_post_value() method is called. The dynamic portion of the hook name, $setting_id, refers to the setting ID.

Parametry

ParametrTypOpis
$valuemixedUnsanitized setting post value.
$manager\WP_Customize_ManagerWP_Customize_Manager instance.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'customize_post_value_set_{$setting_id}', 'twoja_funkcja', 10, 2 );

function twoja_funkcja($param_1, $param_2) {
	// Twój kod
}

Popularne w tej kategorii