akcjaod 4.4.0
customize_post_value_set
Opis — z kodu źródłowego
Announces when any setting's unsanitized post value has been set.
Fires when the WP_Customize_Manager::set_post_value() method is called.
This is useful for WP_Customize_Setting instances to watch in order to update a cached previewed value.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$setting_id | string | Setting ID. |
$value | mixed | Unsanitized setting post value. |
$manager | \WP_Customize_Manager | WP_Customize_Manager instance. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'customize_post_value_set', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'customize_post_value_set', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii