I know this is an older post, but in case you’re still looking for the answer:
Add this line to your tcx_register_theme_customizer function:
$wp_customize->get_setting( 'tcx_notification_text' )->transport="postMessage";
This gets the value from the field and passes it along to the Javascript to put into the live preview.
Related Posts:
- I am trying to use the Theme Customization API but I keep getting an error
- Theme Customization API Changes not Saving
- This page didn’t load Google Maps correctly. See the JavaScript console for technical details
- This page didn’t load Google Maps correctly. See the JavaScript console for technical details
- Constructing requests with URL Query String in Python
- Postman Resolving “Invalid CORS request” for a POST Request
- WordPress Rest API custom endpoint optional param
- WP function/filter for modifying http headers?
- Create API for single sign-on with 3rd party site
- Set up WP Authentication from External API
- How do I cache (core) API requests?
- How to refresh WordPress Customizer panel upon entering a value
- WP Customizer – Prevent live preview
- Slow REST API calls on self-hosted WordPress [closed]
- WordPress JSON output
- how to authenticate for the REST API from a plugin and from command line
- External WordPress API
- WordPress API – Get Drafts
- How to stop WP API endpoint from caching?
- How to implement ERP (Enterprise Resource Planning) into WordPress?
- API integration with WordPress
- Gutenberg internal page link search box
- Sync posts from one WordPress site to another
- In the new Theme Customizer API, how to send a value from the front back to the admin panel?
- Passing variables to new page
- Developing Themes with React/Angular
- WordPress API – count posts
- Does WordPress support a shortcode calling itself from within a shortcode call?
- Stuck with wp_remote_post sending data to an external api on user registration
- Show different Customizer Settings on Page-Tamplates
- API for Post Stats for Self-Hosted WordPress using JetPack [closed]
- Create post with REST API in php with file_get_contents
- How to get WordPress Plugins Data in PHP using Plugin API?
- Displaying Content with WP Rest API
- How to integrate Yelp API
- Where to find WordPress API changes for each version released
- Custom Post for Locating by Google Maps API
- How to Increase WordPress JSON API Speed?
- How Can I Create a List of Values to Be Iterated Through via WordPress Customization API?
- How can I cache WordPress Rest API Response
- WordPress REST API always misses parameters – rest_missing_callback_param
- Unable to find API Key for my blog
- Difference between ‘type’ => ‘text’ and WP_Customize_Control
- Why aren’t tags and categories added in post request to WP Rest API
- get_option() fails to return binary result
- Integrate ZOHO Recruit API?
- POST request not going through?
- Allow logged in WordPress user to access 3rd party Laravel API via OAuth
- Change the CSS of the Customizer API
- How can I send edits to my blog programmaticly?
- Create a range slider to change font-size with different screens sizes in wordpress customizer api
- How to add custom preview urls for some pages?
- Mixcloud FooterWidget api errors in Chrome and Safari but not Firefox?
- wordpress “rest_invalid_handler” error
- WC REST Payment – Stripe Gateway’ is not available
- PHP to Handle API Return instead of print
- WordPress customizer get control
- Get a default value of the Customizer setting using wp.customize API (JS)
- Best way to integrate contact us page with wordpress REST API [closed]
- How to query WordPress from another application?
- Integrate product feed API in Woocommerce [closed]
- WordPress keeps autoplaying my Youtube-Links no matter what I write
- Customizer JS API: Defining active_callback for a section
- How to fix AWS SNS API end point code that cause site not to load?
- Integrating API in to WordPress
- WP REST API and Access-Control-Allow-Origin
- How to get the post_id after you successfully create new post using xmlrpc api wp newPost?
- Soundcloud Smart Player
- How can I create a rearrangeable list of items like OptionTree offers with the Theme Customization API?
- Jetpack JSON API configure button not showing [closed]
- New Twitter API and Twitter count + timeline doesn’t work anymore [closed]
- wp_signon returns user but the user is not logged in because wp installed on subdomain. How to make it work?
- get_pages and get_posts returning different data?
- Working Around rest_forbidden_context
- How to queue API requests with PHP in WordPress?
- How to store API authentication password?
- WordPress and API (rapidapi) request
- Post content in wp_remote_post
- I need some assistance opening a few videos in VLC on android automatically from my wordpress site
- Get total count of records in WP GraphQL API
- Intergrate JSON into wordpress
- WordPress json rest api displaying 10 categories only
- Creating posts, containing data from remote API
- Gravit Forms Notification send after 3rd party API response
- Show sections based on a control in WordPress Customizer using JS API
- Get a default customizeAction text for a section using Customizer JS API
- Expand author, tags and categories in the WordPress JSON API
- How to display parent category with first level child in REST API
- WP Customize API Checkbox change value
- Best way to make a JSON API from WordPress?
- Encrypt API key [duplicate]
- Can I get the post id when trying to make a new post using xmlrpc?
- basic wordpress api endpoint to serve a key-value dictionary
- Trying to integrate wordpress query on other website – getting redirection to wp-install
- Is it possible to make website content available on another website?
- How to login via wordpress api and get user details?
- Page structure using The Customizer Api
- Zoho subscription API to WordPress [closed]
- How many users/load can the rest API handle?
- XMLRPC: How to retrieve possible custom fields for a new post?