akcjadynamicznyod 3.4.0
customize_save_{$id_base}
Args 1Plik wp-includes/class-wp-customize-setting.php
Opis — z kodu źródłowego
Fires when the WP_Customize_Setting::save() method is called.
The dynamic portion of the hook name, $id_base refers to the base slug of the setting name.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$setting | \WP_Customize_Setting | WP_Customize_Setting instance. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_action( 'customize_save_{$id_base}', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_action( 'customize_save_{$id_base}', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii