There isn’t really much of a difference for the default controls. Using the Class is needed for using custom built controls. So basically your first example is the short form of the second one only available for core controls.
For details have a look at the documentation.
Related Posts:
- Show different Customizer Settings on Page-Tamplates
- Change the CSS of the Customizer API
- Create a range slider to change font-size with different screens sizes in wordpress customizer api
- WP-API v2 Custom Endpoint Response Formatting
- Need help setting default setting value for radio button in theme customizer
- Is having multiple theme customizers for different pages possible?
- Remove Customize Background and Header from Appearance admin menu without CSS or JS
- Creating a post with the REST API, curl and oauth returning 401 error
- Is it possible to get a theme customizer setting from wp.customize using jquery?
- Does the REST API (official) support custom post types?
- Unrendered content Cornerstone through REST API
- WordPress customizer: load controls in a custom div
- Dynamically change feature image in customiser
- One button to change all settings in theme customizer?
- Check if Favicon is set in Customizer
- WordPress Customizer: How can you have multiple active callbacks on one control?
- Design view breaking on Pages
- Dynamically loaded Theme components based on Customizer Settings values : changes not appearing in Customizer preview – (Workaround found)
- Customizer Show/Hide Logo and Site Title
- WordPress Customizer not setting default value upon initial install?
- How to add default images into theme customizer image control?
- Theme Customizer – Dynamic CSS PHP File
- How to get custom image size for image uploaded in Customizer
- Passing array in add_option()
- Crop image from get_theme_mod Customizer field
- how to decode % in app [closed]
- Get/Set wp.customize.previewer.previewUrl
- How can I use a $wp_customize to edit my homepage image slider?
- Customizer Show/Hide
- Shortcode API: How to get name that matched shortcode RegEx?
- woocommerce registration form with klaviyo(don’t work with current user)
- How do I get current page ID in WordPress customizer file?
- Count top level menu items
- Getting array of customizer settings
- Customizer – Prefix Class Extension
- From where the header-text can be changed in WordPress custom header?
- How to output widget
- Fetch post block/field data as JSON with WordPress API
- Woocommerce api: create product with images – bad request
- How do I start using an external API and PHP for a WordPress.org page?
- Customizer: active_callback and sanitize_callback incompatibility?
- Store a default value for a transient on plugin activation
- Return a numerical function value in Customizer controls
- Customizer: Multiple CSS styles on same element in Live Preview
- Customizer: Category Select Sanitize
- Problem custom control Customizer
- PHP > Scheduled Tasks > Sending daily email with dynamic API variables
- Skt full width basic slideshow problem
- Fetching instagram api not working on wordpress
- How can I call specific function if requested URL is not found?
- How to check if a Customizer setting is set?
- WordPress Customizer Default Image
- Why is an array created in a function hooked to customize register populated when customizer is loaded but not when the front-end is loaded?
- Building a REST API for your web app exposes primary keys of DB records?
- How to set a template with wp_insert_post
- Is it possible to create new user from external form using REST API?
- Extending WP_Customize_Media_Control to return filename
- Please show me how to use an if/else statement in combination with wp_enqueue
- Customizer: How to change Header Image description
- How to clone all WordPress Rest API end points
- get_theme_mod outputs number when using WP_Customize_Cropped_Image_Control
- Use SCSSPHP to compile Theme Customizer Values into .SCSS files ready to compile to CSS
- Need advice on theme customizer and child themes
- Export post data with xml to other site using php soap
- Getting text from custom field from customizer
- OOP PHP class extends TwentyTwenty_Customize in Child Theme
- Grabing default from cuztomizer php file instead of other php script
- Generate images with html2canvas and the woocommerce api
- Creating a brand attribute as a variable
- Illegal string offset in PHP function in via Theme Customizer
- Why would the child theme load in the Customize preview, but not on the site itself?
- Create a WordPress Contact Form to call a POST AWS API Gateway and send user data
- require get_template_directory() . ‘path/to-my/file.php’ BREAKS customize > themes functionality
- How do i post data to url with fields?
- Trouble Accessing Gravity Forms API (GFAPI)
- How can I edit a php custom page template to work in other themes?
- How to add locations input to user profile?
- Change CSS Variable value in Theme Customizer Live Preview
- $_GET[‘title’] in WordPress
- How do I create a WP endpoint that retrieves all custom post types that have a tag?
- Customizer textarea with script tag won’t work in live preview
- Pulling Products from an API
- Allow user to choose header style
- Remove specific javascript when viewing page in Customizer?
- Customizer: How to Sanitize a Decimal Number Range
- How to update option field in database on clicking the publish button in customizer
- WP HTTP API call response
- Make customizer panel or section button
- make an array in wordpress cusmization api?
- Multiple sections in Theme Customizer overwritten
- Use Custiomizer to setup meta theme color tag
- Default Image not showing up in Customizer for WP_Customize_Cropped_Image_Control
- Sort on two variables
- Using get_theme_mod with checkbox to display content
- customizer live preview layout picker
- Access preview settings in php
- Create Customization Controls from Array
- Replace content in WordPress Page after GET from php page
- AdWords API with WP
- Run A Pre-Built Core PHP Application Under A WordPress Page or Post Route