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?
- What is the best way to customise admin files so they survive future upgrades?
- Verify nonce in REST API?
- Add custom html to last sub-menu item
- Automatic image renaming based on title
- Php custom query function assistance
- How can I manage my multiple wordpress websites from main website?
- Change from /wp-admin/ to something else?
- Add ‘Right Now’ widget to custom dashboard
- Naming script handles right way
- How to edit pages after installing WP
- Exclude custom taxonomy tag from loop
- User Roles Not Sticking
- Login form in popup
- Replace “WordPress” word in title of Dashboard
- Multiple WordPress outside wordPress installation?
- WordPress custom login page
- Hi, I wanted to make custom search with multiple fields
- education system [closed]
- Search widget will search everything in the site, how to limit to only search gallery name
- custom post type – page template
- How to add custom control to a page?
- Navigation label for page in custom theme
- A truely custom login page?
- How to define custom links in WordPress
- What is the best way to modify Admin Panel on WordPress?
- Add the site’s name as prefix when adding new users? Multisite
- How do I create a root link in wordpress to a PDF file?
- Upload a web module (html and JS) to wordpress
- Customizer: get_preview_url() inside customize_save_after hook
- Custom RSS feed – blank page
- Display Images with More Fields yes / no
- How to query term_id of a Custom Taxonomy by name
- WordPress 3.1 update has reversed my blog posts
- Different profile page by role
- WordPress menu: How to make www.link.com/#name never contain current_page_item class?
- How to show parent taxonomy using get_the_terms?
- No plugin populate user information in to form
- Best practice to generate token for email action
- how to change the url rediction of the woocommerce login page of the flatsome theme for my own in wordpress?
- My list of terms of custom taxonomy displays 7 times
- Can’t do a src to node modules folder
- How to customize WordPress vertical menu?
- Query Posts to display all posts with category “custom field value”
- Trouble getting started in wordpress – my experience isn’t in wordpress.
- Customizer API and pages
- Editing a theme’s templates
- How to setup a taxonomy that can have only one post assigned to it?
- Custom Style per Post, How to Display Custom-Styled Single post on Homepage?
- Twenty Eleven theme, how to change style to a specific “format”
- How to move menu next to left of the search box?
- how to manage Session in WordPress using custom login?