Sure, every setting in the Customizer is saved either as a theme mod (by default) or option (if you set the ‘type’ to ‘option’ in $wp_customize->add_setting()
).
You can access the user-defined value using get_theme_mod()
(or get_option()
).
In your example, the value you are looking for can be retrieved with:
$downloads_tab_text = get_theme_mod( 'product-downloads-tab' );
Related Posts:
- PHP files included in functions.php don’t seem to work
- Custom Behavior when Adding New Custom Post Type in Dashboard
- Where do I go to edit this area? [closed]
- How Can I Concatenate A String With One Of My Custom Field Value Before Saving The Post?
- How would I correctly implement a new if statement in a child functions file?
- How To Show Shortcodes In WordPress Custom Fields?
- Customizer cuistom CSS Priority ordre Issue
- Removing custom meta data
- Unable to login using username
- Word Press – Dynamic Content [closed]
- Change label for registration Fields
- Add Custom Background Properties to Customizer
- Insert image in WordPress with HTML5 tag and caption function
- Custom Attachment Caption Fields
- how can I just add to parent theme function(s) instead of redeclaring whole the function
- Cannot save CPT meta box
- Default Custom Field Value Automatically Update
- Move Custom Fields on General Settings Page to New Location
- Skeleton Child Theme Add Icon Bar to Header Flex Grid
- WordPress function saves a post twice and updates all posts
- Redirect to another page using contact form 7? [closed]
- ACF not showing
- different style sheet for just one page template
- How to retrieve the values of a sub-field in the first and last row of an (ACF) repeater inside function?
- Condition OR for current user ID
- How to get correct value from checked()?
- How to retrieve the current post’s generated featured image size?
- Prevent custom field from being updated after first publish
- Remove Custuomize Sections
- unnecessary request call for js and css after calling wp_dequeue_script
- Where do I store custom functions that call custom page template files?
- Why There Is No “get content by ID” Function
- laoding bloginfo url in function array?
- Custom HTML markup
- Use a shortcode to display custom meta box contents
- Wp-query Order By problem
- Create custom function for hero image
- Randomizing wp_tag_cloud() in child theme
- login_headertitle is deprecated since version 5.2.0
- How to append classname to body tag if guest user
- Programmatically add Yoast meta description after post save
- Woocommerce image sizes missing from Appearance › Customize but not declared by theme
- Replace plugin function with a custom function?
- Add attribute only to first image of every post via functions.php
- Different favicon on different pages
- The_content and Preg_replace in loaded Iframe [closed]
- Insert Address fields into function
- Combine two active_callbacks into one on theme customizer
- theme customizer – can a single option pass multiple values?
- WP Customizer API loaded into functions.php
- How to make custom comment fields required
- How to pass variables from one function to another or combine functions
- get_theme_mod outputs number when using WP_Customize_Cropped_Image_Control
- Different methods of adding menu support to custom theme
- Problem with images URL after filter applying
- How add body_class from wp_termmeta
- two search forms on the same page
- Function to replace comment’s accented characters before posting
- How do I display a date correctly that is stored in the database as a backwards 8 digit number from Advanced Custom Fields? [closed]
- Sort and display pages with specific custom field (not tag)
- Problem in using Customizer
- shorthand syntax for custom fields
- Insert a field with PREG_REPLACE – strange behaviour
- Fill empty custom field with other custom field
- How to echo Widget Title in Custom Frontend-Template Box
- New checkbox in custom widget isn’t saving data
- Linking Javascript in functions.php file
- how to display a page before the home page
- loginout function customization
- Theme Customizer – Custom Sections Display, but do Nothing
- Perform function on publish AND save (not just save)
- Function to check if custom page is used by page?
- implementing a centralized content “show-do-not-show” toggle?
- How would I make a function to dynamically determine if user is logged to change navigation menu text?
- Odd functions.php issue in WordPress
- How to display this meta data (an array) in form of a function (created with a custom write panel)?
- WordPress – using sessions?
- Is it possible to add custom badges to product attributes conditionally, based on custom field?
- Customise Grouped Product display in Woocommerce with custom column
- How to Display WooCommerce Product Price in WooCommerce Archive
- How to change text color depending on the number value (Using javascript)
- Astra theme – cannot set short product description under the product title (product name)
- Custom Form / Search with Custom Post Type Data
- How to remove font awesome from loading in wp theme
- wp_set_object_term via js btn frontend
- Trying to update Woocommerce meta values
- How to replace ACTION url from original wordpress login form?
- Populate Product Regular Price with a calculated ACF Field Value
- Header menu aligned right on all pages except for single-post page [closed]
- Save_post – Warning: Cannot modify header information
- How to use WP conditional tag in a functions.php with OCEANWP Theme?
- Modifying a WordPress Plugin
- CF7 select value get to function and reciept value from function
- Hide author info in single posts by certain users
- External api call and make global variable for any page visitor enters , page-home, page, single etc
- CSS style and app.js not loading
- Parent category as WOOCommerce Categories widget title
- Extend WordPress Audio Widget to accept HLS (.m3u8) URLs
- Shortcode to insert default text and change one word throughout it?
- I want to customize the_posts_navigation function by replacing prev and next with images