You can assign a new array there, with the updated options:
$wp_customize->get_control( 'your_control_id' )->choices = array( 'top' => 'top', 'bottom' => 'bottom' );
used this in my functions.php
function modify_choice( $wp_customize ){
$wp_customize->get_control( 'your_control_id' )->choices = array( 'top' => 'top', 'bottom' => 'bottom' );
}
add_action( 'customize_register' , 'modify_choice',999 );
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
- 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
- Essential technical features for high-end WordPress web hosting? [closed]
- Default value for add_settings_field
- How to make a script load after Custom Block is loaded in the editor?
- How to edit the actual paragraph dropdown in TinyMCE with custom text styles
- Add control in image detail panel
- using upload image with media_handle_upload .. but !
- How-to inspect filter-able $vars?
- pagination in woocommerce order history page
- Combine multiple words in custom meta search query
- How to run a test WordPressMu to WordPress3 update?
- Comparing two WordPress installations
- WordPress development using Docker – how to share directories? [closed]
- How to add more than one RSS Feed Link for wordpress
- How to link external JavaScript files?
- How to create a list of items with fields in WordPress?
- Remove ability to Permanently delete an image from the Media Library
- Filter posts by custom taxonomy terms
- shortcodes – style them or change/remove the square brackets?
- want to create a subcategory.php to manage subcats
- Updates for a private theme
- Contact From 7 Custom Validation Issues
- How to add an extra button on woocommerce shop page and use it to send the product info with image in a mail? [closed]
- 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 hook up search results page to a back-end page?
- List top 5 authors with most posts
- CSS Styling a specific page
- Can Username and Password be passed to WP Login page in an IFrame?
- Get users based on month ACF datepicker field
- Edit value=”” of a button in child theme
- External Link Button Under Post Excerpt on Index.php
- Centering one product on a single page [closed]
- Remove link from page title
- Which delete query is better with prepare or delete
- How to add page content into another page
- Localhost wordpress access remote db wordpress website
- add_action does not work when instance multiple tab-containers via template-file
- Display Images with More Fields yes / no
- accessing monthly archive from dashboard
- WordPress 3.1.2 Bug: add_theme_support() and video post format registering twice
- Changing update message from Newspaper child theme
- Custom default settings for WP native Gallery Block
- Custom roles and capabilities media not work right
- How to customize WordPress vertical menu?
- Redirect Every Instance of The Author Template Pages to Custom Author Pages
- Custom WP deactivate an email activation link sent to user’s email.
- Page template with custom html fields inside a content
- How to move menu next to left of the search box?
- how to manage Session in WordPress using custom login?
