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
- Best approach to change mobile background image and adding its class
- How can I keep a WordPress dropdown menu open when navigating to a child page?
- How to structure a plugin
- is_plugin_active function doesn’t exist
- Custom pages with plugin
- WordPress Plugin Development In MVC Architecture, How?
- 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?
- What is the correct way for a theme to support plugin UIs?
- Create page when plugin is activated
- How to call “page specific menu items” in template [closed]
- Update Multiple Post Meta for the Same Post In One call?
- Function to activate WordPress theme inside a plugin
- How can I limit functionality in one version of a plugin?
- Integrating plugins in themes
- WordPress Plugin as ‘Library’ From Abstract Application?
- How to show custom message once on plugin activation?
- 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?
- WordPress network: set themes and plugins for new blog
- Updating post meta for custom post types
- Should I use RIPS tool to test my themes and plugins?
- Failed to invoke other hook from the init hook
- How to Build a Movie Library in WordPress 3.x
- Can a plugin add to header/footer/body content?
- Created Widget Not Showing up on Admin Panel
- How do I future proof my older WordPress theme?
- Autoload via composer in plugin interference
- REST-API: extend media-endpoint
- Workflow and best practice for documentation [closed]
- Display future posts?
- Passing select control value to block
- Having separate plugins and themes folder for multi-site setup
- Passing RichText attributes to function onChange
- How do I store information in a dynamic block in WordPress?
- How can I get full attachment url from wp_get_attachment_metadata?
- unzip a folder on specific location and delete the zip file
- gallery option is not available in media upload box in costum theme option page
- Why is the Settings API is not saving my array of options
- How to integrate plugin in WordPress theme
- Is there a way to alter the order in which the plugins appear in the page?
- Override the filter from plugin in child theme
- How to create custom embed block in gutenberg wordpress
- Custom plugins/Manipulated plugins: Always a terrible idea to inherit these types of WP sites that discourage updates? [closed]
- how to load the language file in plugin?
- WooCommerce get_price returning wrong price when used via ajax
- Open Post Thumbnail in New Child Theme File in WordPress
- 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
- JS Support Ticket – Auto create WP account
- 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?
- WordPress Gutenberg react make import of __experimentalUseInnerBlocksProps which is no more experimetal
- Display post lists in 2nd paragraph
- Disable woocommerce cookies and delete cart data automatically
- className not populating in custom block
- How to fetch products with the price in a page on woocommerce using a form or live search with php
- custom payment gateway in woocommerce failed to connect to remote api server
- Using SVN to upload plugin created with gutenberg blocks
- Best way to maintain and update 3rd-party WP plugin when developer is unresponsive?
- Best place for short bio,image and button [closed]
- What are the specifics of WordPress development I need to know? [closed]
- Customization API for plugin development
- How to create a code editor for my plugin .?
- Fromcraft Plugin On click submit button [closed]
- wp_footer hook only working on homepage not in other pages
- How to redirect users to their profile after they successfully edit their profile
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- show Visual form builder in the front end
- What is the Object for WP_Error Class?
- Active Plugins for current blog in WP Multisite Network? [duplicate]
- Get page type to display content
- Breadcrumb is not generating the correct post page url
- How wordpress plugin hooks works? [duplicate]
- Gutenberg: Dynamic Block – Show saved data in the editor
- Site is setup statically – how to make it content managable?
- How can I make a website with dynamic features with wordpress?
- How to create post comparison in 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?
- WordPress Customise
- 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?