wp-includes/class-wp-customize-manager.php:5041Returns a list of devices to allow previewing.
arrayOne hook fires while WP_Customize_Manager::get_previewable_devices() runs, in this order:
Filters the available devices to allow previewing in the Customizer.
public function get_previewable_devices() { $devices = array( 'desktop' => array( 'label' => __( 'Desktop' ), 'default' => true, ), 'tablet' => array( 'label' => __( 'Tablet' ), ), 'mobile' => array( 'label' => __( 'Mobile' ), ), ); /** * 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; }Introduced in 4.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/class-wp-customize-manager.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.