As far as I can tell from looking into block editor store (you can use Redux devtools plugin for browser for that), entity for reading options is not registered. That means you cannot use getEntityRecord selector, which is usual way to obtain such data. Instead, either you can:
- Use apiFetch to fetch data from designated REST endpoint.
- Register your own entity to REST endpoint from 1. with addEntities and use
getEntityRecordfor getting data from option.
Related Posts:
- Passing select control value to block
- Passing RichText attributes to function onChange
- How do I store information in a dynamic block in WordPress?
- How to create custom embed block in gutenberg wordpress
- How to use get_theme_mod in gutenberg editor wordpress?
- 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
- Using SVN to upload plugin created with gutenberg blocks
- How to add custom table style for table block in gutenberg editor
- Gutenberg Block Style CSS Class Is Not Applying on Backend
- Why is the ‘Gutenberg’ Plugin generating an ‘Inconsistent File Permissions’ error when other Plugins, with the same permissions, do not?
- Set Multiple Meta Values as an Array Using dispatch( ‘core/editor’ ).editPost() Call in Gutenberg/JS
- Use a custom block in another block
- Gutenberg default attributes are empty when accessing in edit
- Set Button in PluginDocumentSettingPanel Content (WordPress Gutenberg)
- Has blocks gutenberg block multiples registers type in my Plugin
- Fixed: Console.log twice in the edit function
- How to resolve warning for `unstableOnSplit` prop on a DOM element in block editor
- How to dynamically add template in Innerblock?
- Block content rendering on the top just below body tag
- Gutenberg: Dynamic Block – Show saved data in the editor
- Create plugin with multiple blocks
- How do I set register_meta for a specific CPT?
- How do I save meta key value in the save function?
- Update Content for a Custom Block Toolbar Button
- Wrong block appender button showing
- Vanilla javascript in custom gutenberg block not working
- WordPress custom block: Link saved in database not retrieved when editing post
- Why is my Gutenberg block not saving and rendering the chessboard?
- How can we extent core/group or cover block?
- How to change the version of block.js and plugin to the same of Package.json?
- How do I apply different block supports to different parts of my custom block?
- Custom Gutenberg blocks not showing in WP editor
- How to change a user’s password programatically
- Who are the most trusted plugin developers? [closed]
- Get plugin_dir_url() from one level deep within plugin
- How to delete custom taxonomy terms in plugin’s uninstall.php?
- Redirect to settings page after install
- Notify Admins about Plugin Merge
- What is the correct way for a theme to support plugin UIs?
- How does WordPress determine the primary plugin PHP file?
- Adding Featured Image in Post List
- Why does including a file in theme’s functions.php not work?
- WooCommerce – Call to undefined function is_woocommerce()
- translation does not work with text_domain
- OEmbed from Pinterest
- Custom values are not translated
- Should I use RIPS tool to test my themes and plugins?
- Add Top-Level Menu that opens URL
- Change the name of an installed plugin
- flush_rewrite_rules() not working on plugin activation
- Determine plugin name from within plugin_action_links filter
- Plugin Functionality Only for Editor and Administrator
- Plugin to hide admin menu (vertical menu bar)
- Issue with post request to admin-post.php
- Having separate plugins and themes folder for multi-site setup
- action-scheduler vs wp-background-processing
- Gutenberg List Extension Block
- Many plugins making WordPress run slow by design?
- Do you clean up your self-written plugins’ at deactivation?
- Sanitizing, Validating and Escaping in WordPress (Plugin)
- How do I turn a custom post type into a plugin?
- like to keep reading plugin
- Check if email address exists front end with AJAX in a plugin
- Avoiding Duplicate function names in Post Loop (WP_Footer script)
- Global matrix for shortcodes/content for every page
- How to add class in plugin only for network site?
- Plugin Development sqlite or WordPress’ database
- How to write a plugin to add users to a mail list
- WordPress plugin for activating other plugins
- Add keywords meta to index.php page
- How do I prevent the link from using url of the image in Block Editor?
- Pulling data from custom plugin settings using PHP shortcode and Javascript
- New User Form – Custom Menu Page
- Does WP identify plugin by plugin name or plugin_basename?
- AJAX search posts and pages
- Combine scripts from all extensions of the plugin when an extension is activated
- Add button gutenberg help
- Fetch Children of Grouped Products Inside WooCommerce Product Loop
- Modifying Author Link to add Author Meta in URL
- WordPress plugin creation how to execute .sql in order to insert multiple rows at activation of plugin
- Best way to maintain and update 3rd-party WP plugin when developer is unresponsive?
- Force file download on plugin activation
- Checkbox conflict in my custom plugin admin page
- how to do login using woocommerce rest api From android
- How to create a custom post type that contains another custom post type?
- How to create a custom shortcode based on the layout?
- How to set meta-data for my plugin
- WordPress isn’t sending welcome email with the password reset
- A splash page on landing page
- Inline AJAX script passing variables to PHP
- How to get attributes from block.js into php
- Pulsing circle before the post title (Breaking news flash)
- How to provide page_template path in custom plugin using WordPress
- Accessing Correct Database to Create REST API Endpoint
- Detect if user is on the specific page in WordPress
- A multi-section WordPress store [closed]
- How to add a react element into the DOM node (only on the user-interaction like on click) without using the state?
- WordPress theme development – the template dropdown in Pages and disappeared