customize_previewable_devices filter-hookWP 4.5.0

Filters the available devices to allow previewing in the Customizer.

Usage

add_filter( 'customize_previewable_devices', 'wp_kama_customize_previewable_devices_filter' );

/**
 * Function for `customize_previewable_devices` filter-hook.
 * 
 * @param array $devices List of devices with labels and default setting.
 *
 * @return array
 */
function wp_kama_customize_previewable_devices_filter( $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

WP_Customize_Manager::get_previewable_devices()
customize_previewable_devices
wp-includes/class-wp-customize-manager.php 5047
$devices = apply_filters( 'customize_previewable_devices', $devices );

Where the hook is used in WordPress

Usage not found.