It depends what “update” means.
If you want just to hide or show the control, (like how WordPress sidebar area is appearing and disappearing when the sidebar is present or not) then you can use the active_callback parameter of the customize_control like this.
Edit: Also, active_callback works on sections and panels too.
If you want the change the control’s HTML structure, or text or anything else, then it requires advanced javascript knowledge, because you need to trigger javascript events from the previewer and catch them on the panel.
This example comment should be enough for this case.
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
- Hide devices selection from customizer?
- 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]
- 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
- Running Gutenberg React in Development Mode
- WordPress hook before inserting post into database
- Check for and enforce unique value in user-entered custom meta field in WP Admin
- Enable / Add Custom Keyboard Shortcuts To Work With WordPress’ HTML Editor
- How to exclude certain widget from showing up on home/front page? [duplicate]
- What is causing this error? “Warning: Invalid argument”
- Modifying loop on a custom page, strange behaviour
- WordPress native “playlist” shortcode. Next and Prev there are but with no icons. How to fix?
- Show post page only if the user has bought a specific product
- PHP files included in functions.php don’t seem to work
- Create simple Cookie Box for WordPress
- How to remove buttons from the WP Editor on the edit post page in the admin area
- 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?
- Blog page problems
- Installing new theme on running site
- Switch between WordPress websites easy for an end user
- I’d like to be able to programatically setup a site to discourage crawling by search engines
- dbDelta not creating tables with composite keys
- Divi theme: change overlay color from default blue to back [closed]
- How to use a WP_Customize_Control outside of the Customizer?
- failing to display a custom font [closed]
- Make a difficult page editable
- How to create multipage form and redirect to specific URL based on inpput?
- Simple custom attributes on posts
- Polylang will not allow changing of language without translation
- WordPress 5: including larger thumbnail image sizes in srcset than I have set
- Custom query pagination with php parameter as arg problem
- Perform javascript when an input in Customizer is selected/focused?
- How to add a static text at end of a wordpress permalink
- Style Radio Buttons inside Edit Page (Custom Fields)
- How to display all post from the same current usermeta
- How to echo custom styles in css format?
- Accept HTML in custom function
- Add date under slider/grid featured content
- How to customize the gallery shortcode in WordPress?
- Using Custom Fields in post, need to put into the_content
- Upload files in wordpress
- Custom Query for Taxonomy
- What is Global WordPress Objects?
- Using str_replace on wp-admin
- Why should I keep my personal WordPress separate from my “professional” one? [closed]
- How do I include the sidebar (with Widgets) in a custom theme?
- Edit image alignment in WordPress twentysixteen child theme on attachment page [closed]
- Custom product sorting archive page
- Add custom information in editor summary
- A Voting system for a pageants