WordPress at a glance
function is not described

WP_Customize_Manager::get_previewable_devices() WP 4.5.0

Returns a list of devices to allow previewing.

This is a method of the class: WP_Customize_Manager

Hooks from the method
Return

Array. List of devices with labels and default setting.

Usage

$WP_Customize_Manager = new WP_Customize_Manager();
$var = $WP_Customize_Manager->get_previewable_devices();

Changelog

Since 4.5.0 Introduced.

Code of WP Customize Manager::get previewable devices: wp-includes/class-wp-customize-manager.php WP 5.4.2

<?php
public function get_previewable_devices() {
	$devices = array(
		'desktop' => array(
			'label'   => __( 'Enter desktop preview mode' ),
			'default' => true,
		),
		'tablet'  => array(
			'label' => __( 'Enter tablet preview mode' ),
		),
		'mobile'  => array(
			'label' => __( 'Enter mobile preview mode' ),
		),
	);

	/**
	 * Filters the available devices to allow previewing in the Customizer.
	 *
	 * @since 4.5.0
	 *
	 * @see WP_Customize_Manager::get_previewable_devices()
	 *
	 * @param array $devices List of devices with labels and default setting.
	 */
	$devices = apply_filters( 'customize_previewable_devices', $devices );

	return $devices;
}