Yes. There is a customize_previewable_devices filter which is used to manage which devices are displayed here. For example, to conditionally remove the Tablet device, do:
add_filter( 'customize_previewable_devices', function( $devices ) {
if ( ! current_user_can( 'do_something' ) ) {
unset( $devices['tablet'] );
}
return $devices;
} );
Related Posts:
- New WP_Customize API – how does it work under the hood?
- Disable Visible Edit Shortcuts in the Customizer
- How to Add Customizer Setting in Child Theme
- customize_register with Multiple controls/settings – how to get values?
- Manipulating post meta in the customizer
- Widgets not working in Customizr but working in Appearance
- In the new Theme Customizer API, how to send a value from the front back to the admin panel?
- get_theme_mod(); returns nothing
- How to get input_attrs in the sanitize function?
- How to change in customizer the “site identity” tab required capabilities
- Customizer image control default value showing in customizer but not on frontend
- Customizer: How do you add HTML to control labels?
- Add new Control to Customizer to modify Headings (h1, h2, h3…) Color
- How to extend nav-menu-item-control data in Appearance > Customize?
- What will happen to the additional CSS when the theme is updated?
- Convert an theme options page to use in customize.php also?
- Add more then one site logo – custom-logo theme support
- Fatal error in wp-admin/customize.php after fresh install due to null $wp_customize
- Enabling Additional CSS / custom-css
- Can not sanitize select control in customize api
- Bind JS event to WordPress control customizer
- For a specific theme, how do I build a list of all the possible theme modification names?
- Save & Publish disabled for two dimensional array Customizer
- Allow guests to use WP Customizer but disable save button
- How do I remove a customiser option from a parent theme in a child theme?
- How to add css option to Header Image customizer?
- Trigger Customizer Publish (save) Action
- How to edit alternate inactive themes in “Appearance -> Customise” screen?
- Is it necessary to prefix theme_mod, section id and panel id in the customizer?
- Hide Customizer’s Widget Choices From The List
- theme customizer – can a single option pass multiple values?
- How to remove Customizer’s Section and move Control straight to Panel using Child Theme
- Remove Customizer Control Choices (Type: Radio Array) using Child Themes
- Dynamic Control in customiser
- Is it possible to rename a customizer control heading?
- Is it possible to add custom badges to product attributes conditionally, based on custom field?
- Will WordPress updates remove Gutenberg Additional Classes?
- Easily add custom HTML outside the main container?
- Customizer options limited to specific user roles?
- Can’t Customize WordPress Page
- WordPress Customizer: Check for value of CSS selector and replace it
- In wordpress customizer api adding div wrap to control
- Apply `the_content’ filter to theme customisation live preview
- retrieve theme custom settings
- Multiple Customizers
- Which IDE best for WordPress Development? [closed]
- Refresh Customize Section (not preview)
- Do i need to use PHP in customizer api?
- Where did I put this one line of css?
- Hover Hide-Visible Additional CSS not working in WordPress website, but shows properly in Customize window
- How to add Disqus comment count
- can I orderby one custom field and meta_query another in the same query
- WP Super Cache separate cache for mobile
- ensure user can only be logged in on one computer at a time?
- WordPress prompt checklist before publish?
- CSS rules that the theme gets from a function
- Hide page title in WordPress 3.0
- enqueue script on custom post type archive page
- How to translate month names in “Archives”
- Retrieve and display data from custom db table in admin area?
- Virtual Pages plugins
- What’s the easiest way to periodically (automatically) read static Markdown content into a WP page?
- Problem with using wp-load.php outside of WordPress
- How to remove padding and margin between divi rows? [closed]
- Renaming wp_content problem
- How to implement a custom password field that redirects to another page upon correct password?
- Does wordpress prevent non wordpress pages from being allowed on the same domain?
- Customizer: Unique identifier that distinguishes which image upload control is uploading an image
- Different development environments (Mac & Windows)
- WordPress media uploader – upload tabs not hiding
- how to convert Html block to dynamic widget?
- Custom column working problem
- How to structure model showcase
- Admin search post meta
- WPML Plugin Not displaying multilingual Menus
- How to recover permanently deleted blog posts?
- Add Field to WordPress Register Form
- Create small dashboard widget
- Custom font size nav bar
- Default Display Name As Username
- Show title bar only on archives / hide it on all posts and pages
- Taking over my late husbands wordpress blog that we shared
- How to customize the WordPress 2014 theme, to have page using less horizontal margin?
- Position a hard-coded menu item
- Trying to set specific image dimensions and crop with ACF
- Using static pages on WordPress site
- Adding Multiple “Parents” in get_categories
- Where’s did this div element come from?
- Adding pub_Date to an RSS feed hosted on WordPress
- How to show related post with category DESC (ASC) IDs of ID current post
- Lost customization after switching the WordPress theme
- How replace theme styles?
- Remove distraction free mode from teeny editor
- Should disabling a plugin that has been customized by a developer crash the site?
- Responsive menu not expanding in footer
- Show specific posts as static html/php
- Is it possible to sync nav menus across multiple wordpress sites?
- Display Custom Posts
- How to place the captcha just below the comments text area
- Multiple posts categorized by day?