You need to be modifying a section not a setting.
Try this:
add_action( 'customize_register', function( $wp_customize ) {
$section = $wp_customize->get_section( 'menu_locations' );
$section->description .= "<p>Custom HTML added.</p>";
}, 12 );
The priority of 12
is used because \WP_Customize_Nav_Menus::customize_register()
happens at priority 11
, and this is where the section is added.
Related Posts:
- Where is Customizer related data stored is the database?
- How do I implement selective refresh with a customizer setting?
- How to create a theme customizer ‘sub’ panel?
- Use default value of wp_customizer in theme_mod output?
- Repeater field in Customizer
- Adjust the Device Preview sizes used in the WP 4.5 Customizer
- WP Customizer – Prevent live preview
- How to upload multiple images with WP_Customize_Media_Control
- Different customizer previewUrls per section
- Is there any way to add placeholder for WordPress Customizer text input fields
- How WP_Customize_Background_Image_Control is supposed to work?
- Custom editable content for front page from Theme Customizer
- How to print the value of a custom control in the Customizer?
- Add/remove controls dynamically based on other settings in Customizer
- Customizer JS API dynamically add sections and controls
- Get all registered wp theme customizer sections?
- Add custom background to div in home page
- Theme customizer – possible to disable Live Preview?
- get_theme_mod doesn’t return the theme customizer preview’s new values in after_setup_theme hook
- How do I handle the “WP_Customize_Cropped_Image_Control” callback?
- How to mix partial and full page refresh in the same section of the customizer?
- Conditional Logic to Check for Site Icon
- Theme Customization API options on install
- How do I check if user input in a field in the customizer is a number?
- How to access the nav_menus panel with the customizer api?
- Add a “loading” notice when Customizer is making changes
- Make Theme Options Native to Theme Customizer
- How do I conditionally enqueue stylesheets or scripts in theme customizer settings?
- Internalize get_theme_mod CSS Into Stylesheet?
- Customiser `active_callback` not working on control with `postMessage` transport method
- Is it possible to conditionally displaying and hiding of customizer controls for each device preview?
- How to get control choices from $setting object passed to sanitize_callback
- Can I change a control’s transport in Customizer depending on the previewed page?
- Passing data from customize-controls.js to the customize-preview.js
- Add or remove HTML class with selective refresh?
- Get attachment id from WP Customizer
- How to output WP_Customize_Cropped_Image_Control setting?
- Why does get_theme_mod return blank (or default value) but get_option returns saved value?
- How to hook on customizer section expanded/active/opened event?
- Get current post ID of customizer preview window
- Deactivate sections/panels when the Customizer finishes loading
- How do I use add_control to offer a list of all pages in the customiser?
- Add button to Customizer
- Visible Edit Shortcut for WordPress menu that uses nav walker
- How to add theme customizer control to specific page?
- Customizer active callback live toggle controls
- Why is remove_setting and remove_control not working?
- Section Name for Menu in Theme Customizer
- Is it still possible to nest panels within panels within the customizer?
- Get_theme_mod not retrieving value
- Need to run a plugin on Customize.php
- Customizer preview doesn’t update get_option() value properly
- What is the difference between sanitize_text_field() and wp_filter_nohtml_kses()?
- Customizer Issue, Default Settings not working
- How to move Menus customizer section directly under Site Identity?
- WP customizer + gulp + browsersync = refused to display in iframe?
- Set Default Page On Customizer Live Preview
- Rename and rearrange customizer section
- Make Customizer Load Specific Page
- Theme Customizer Custom Background / Header Image
- get_theme_mod not working
- Customizer not saving image settings
- How to hide few theme customization options – TwentySeventeen theme
- Panel description in Customizer does not show up
- Removing http:// from esc url() for wordpress customizer code
- Theme Customizer – My panel disappears
- Send data from Customizer Settings to Customizer Preview with settingless control
- Author functions don’t work in customizer’s selective refresh
- How to remove mixed content warnings in WP Customizer
- How to extend Customizer payload sent when ‘Save & Publish’ is triggered
- Does the customizer support multiple templates?
- Using Theme Customizer Built-In Sections
- How to use rgba color from theme customizer color picker
- Theme Customizer changes are dissappearing when change page
- How can a default site icon be set in customizer?
- New customizer setting not showing value
- Customizer Selective Refresh doesn’t refresh properly with saved value
- WP Customizer JS Template not saving color field
- WordPress Customizer sanitize_callback: How to Reset to Default on Fail
- Removing pre existing menu item
- Change “Display Site Title and Tagline” checkbox text in theme customizer
- Customizer, change preview url when a control changes
- Hide Text when check box option is ticked in customizer?
- site identity section name?
- WordPress code editor VS customizer “built-in CSS editor”?
- How do i remove the ‘WooCommerce’ section from Customizer in Twenty Sixteen Theme?
- Customizer options
- How to suppress anchor tag click redirection in customizer preview frame?
- Customizer Add Section argument ‘active_callback’ => “is_front_page” not working
- Theme customization based on grouped pages
- Issue with Customizer: only last field shown in section
- Is there any function that would allow me to register custom stylesheets for the Customizer itself?
- How do i add edit shortcut icon in wordpress without using selective refresh
- Hide or remove the Remove button in WP_Customize_Image_Control
- get_theme_mod() only working when the customizer is open
- Dynamic IDs in WordPress Customizer value bindings
- Customizer live preview not working, refreshes but nothing change
- What is the name of the setting in the customizer for ‘Display Site Title and Tagline’ checkbox?
- Theme Customizer – Hide / grey out settings based on other setting
- Change the location of add_theme_support( ‘custom-header’ ) in the customizer