You don’t, if you need a dynamic value you have to have a server rendered block.
Otherwise, if you managed to get the theme mod, it would be frozen to the value it had at save, and changing the value in the customiser would not update the blocks. So use a dynamic server rendered block and grab the value in PHP the same way you normally would.
Related Posts:
- Which functions in theme or plugin load first
- How to load a new template page according to a particular URL?
- Redirect to another page using contact form 7? [closed]
- Rename a folder via HTML POST request
- Why the output of an image gallery plugin is not displayed into a page of my custom theme?
- How to generate a responsive output from plugin?
- How to add image for custom taxonomy
- Is it a good idea to edit an already existing plugin to add more functionality?
- Checking if an attribute exists in a shortcode
- Show Similar Post Titles ( Similar to Stack Exchange )
- How do I unlock a post programmatically?
- Function to activate WordPress theme inside a plugin
- How can I limit functionality in one version of a plugin?
- Add CSS animation as Preloader to WordPress
- How to list the Hooks and order of execution in current loading page? [duplicate]
- How to make my plugin theme-independent?
- Updating post meta for custom post types
- Autoload via composer in plugin interference
- REST-API: extend media-endpoint
- Workflow and best practice for documentation [closed]
- Passing select control value to block
- How do I store information in a dynamic block in WordPress?
- How to integrate plugin in WordPress theme
- Is there a way to alter the order in which the plugins appear in the page?
- How to create custom embed block in gutenberg wordpress
- how to load the language file in plugin?
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- WordPress plugin – Error “Plugin generate 2890 characters of unexpected output when activated”
- My plugin wants to update another plugin
- How to get current post user id
- Input with spaces in Shortcode attributes overwritten by defaults
- Edit Yoast SEO breadcrumbs output [closed]
- How would I go about creating a user ranked post popularity page?
- How to add Internationalization in WordPress using Javascript/React?
- how to disable blockrenderAppender inside all Innerblocks?
- Display post lists in 2nd paragraph
- className not populating in custom block
- Using SVN to upload plugin created with gutenberg blocks
- Customization API for plugin development
- Fromcraft Plugin On click submit button [closed]
- How to redirect users to their profile after they successfully edit their profile
- How to add custom table style for table block in gutenberg editor
- Why is the ‘Gutenberg’ Plugin generating an ‘Inconsistent File Permissions’ error when other Plugins, with the same permissions, do not?
- How to write “alt” tag in image for wordpress code?
- Customizing Titles on the Fly with Code
- Add filter on html tags,attributes on specific function in wordpress
- Shortcode Attributes to Return different $_POST
- How to use the CSS of the WordPress core in the development of my administration page?
- Loop in elementor custom widget not working
- What’s the right way to implement functions in footer.php
- display unique post per category
- Yoast SEO Plug In and my Theme duplicating code. Need some feedback on what to do? [closed]
- unregister a sidebar widget
- Custom Post Type, Custom Columns List
- Gutenberg default attributes are empty when accessing in edit
- woocommerce remove coupon link does not work
- Check if theme supports sidebar
- How to override any plugin file in the child theme
- submit two file input fields in the same form
- How to resolve warning for `unstableOnSplit` prop on a DOM element in block editor
- How to dynamically add template in Innerblock?
- WordPress hierarchy clarification, does post_type_archive take precedence over taxonomy-term archive?
- how to change a static testimonials into dynamic
- My wordpress local urls is still displayed even moved to live
- working code, not working – Plugin Dev
- Cannot view Custom Post Type no matter what I try
- Create survey that redirects to sidebar menu customized to answers
- Custom wp_list_tables redirect on specfic page
- Paid Membership Pro displaying a user name in PHP
- Load my Inline js footer area
- Remove action added in plugin class from theme
- Woocommerce list variations that are added already to cart in Single Product
- Can you develop themes and plugins while using the hosting services BlueHost? [closed]
- Creating Nested custom fields
- how to add custom css at top above all css file for specific url
- Confusing problem with displaying message recipient metadata
- Custom pages with plugin
- Multiselect value in wp_query
- Get page type to display content
- Breadcrumb is not generating the correct post page url
- Site is setup statically – how to make it content managable?
- How can I make a website with dynamic features with wordpress?
- WordPress Code Access to Restricted Content without Registration
- What can I do to customize a widget provided with this plugin? from where have I to start?
- Integrating WordPress Content into a jQuery Slider
- Why haven’t I see plugins using get_file_data to handle retrieving plugin version?
- Can anyone tell some online tuts for plugin development for beginner? [closed]
- How to escape html code?
- How can I properly sanitize the update_option in WordPress?
- Custom gutenberg block image preview not working
- Take Elementor For Email FIeld Check if user is registered. IF not registered then register on woocommerece
- how to make wordpress remember my choice
- How do I set register_meta for a specific CPT?
- How to Enfroce Domain Licensing Limits? [closed]
- How do I save meta key value in the save function?
- Update Content for a Custom Block Toolbar Button
- Meta box not displaying on the plugin page
- Wrong block appender button showing
- How to get custom setting from get_option and pass it in getEntityRecords in gutenberg block?
- How to make a Template page to show the information of different things Shop and Product page?