filtrod 4.5.0
customize_previewable_devices
Opis — z kodu źródłowego
Filters the available devices to allow previewing in the Customizer.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$devices | array | List of devices with labels and default setting. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'customize_previewable_devices', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'customize_previewable_devices', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii