WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_Customize_Manager::get_previewable_devices() public WP 4.5.0

Returns a list of devices to allow previewing.

{} Это метод класса: WP_Customize_Manager{}

Хуки из метода
Возвращает

Массив. List of devices with labels and default setting.

Использование

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

Список изменений

С версии 4.5.0 Введена.

Код WP_Customize_Manager::get_previewable_devices() WP 5.5.3

<?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;
}