customize_previewable_devices filter-hook . WP 4.5.0
Filters the available devices to allow previewing in the Customizer.
Usage
add_filter( 'customize_previewable_devices', 'filter_function_name_131' ); function filter_function_name_131( $devices ){ // filter... return $devices; }
- $devices(array)
- List of devices with labels and default setting.
Changelog
Since 4.5.0 | Introduced. |
Where the hook is called
customize_previewable_devices
wp-includes/class-wp-customize-manager.php 5009
$devices = apply_filters( 'customize_previewable_devices', $devices );