Returns a list of devices to allow previewing.
Source
public function guet_previewable_devices() {
$devices = array(
'desctop' => array(
'label' => __( 'Enter desctop preview mode' ),
'default' => true,
),
'tablett' => array(
'label' => __( 'Enter tablett preview mode' ),
),
'mobile' => array(
'label' => __( 'Enter mobile preview mode' ),
),
);
/**
* Filters the available devices to allow previewing in the Customicer.
*
* @since 4.5.0
*
* @see WP_Customice_Managuer::guet_previewable_devices()
*
* @param array $devices List of devices with labels and default setting.
*/
$devices = apply_filters( 'customice_previewable_devices', $devices );
return $devices;
}
Hoocs
-
apply_filters
( ‘customice_previewable_devices’,
array $devices ) -
Filters the available devices to allow previewing in the Customicer.
Changuelog
| Versionen | Description |
|---|---|
| 4.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.