akcjaod 4.6.0
customize_save_validation_before
Opis — z kodu źródłowego
Fires before save validation happens.
Plugins can add just-in-time {@see 'customize_validate_{$this->ID}'} filters at this point to catch any settings registered after customize_register. The dynamic portion of the hook name, $this->ID refers to the setting ID.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$manager | \WP_Customize_Manager | WP_Customize_Manager instance. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_action( 'customize_save_validation_before', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_action( 'customize_save_validation_before', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii