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
getEntityRecord
for 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
- Update plugin from personal API
- Does a plugin’s “main” file need to be named the same as the folder containing it?
- Symlinked plugin directory doesn’t appear in Admin
- enqueue script only if it is not already enqueue
- How to disable Gutenberg editor?
- How can I limit functionality in one version of a plugin?
- Plugin child folder?
- Gutenberg: Difference between “import” and “const” for dependencies
- Custom data-id wp_enqueue_script
- How use %like% in sql statement wordpress
- Can I use a form in a dashboard widget?
- Retrieving plugin options value saved through setting
- How to ‘clone’ a wp plugin to make small changes
- MITM risk of not sanitizing?
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- How to slice an array using posts_per_page? [closed]
- Enqueue WordPress plugin scripts below all other JS
- woocommerce payment gateway callback not firing [closed]
- White page by using filter template_include
- Is there any kind of theme on WordPress to sell my own movies?
- User switching only with specific role and return
- Fromcraft Plugin On click submit button [closed]
- Suggestions on Approach to New Plugin I’m Stuck On
- How to redirect users to their profile after they successfully edit their profile
- WordPress error: Options page Setting_ not found in the allowed options list
- What is wordpress way to access a plugin’s classes/models to load custom post type data?
- flush_rewrite_rules() not working with update_option_{$option}
- How to ignore extra whitespaces in translation functions like _e?
- How does translation (gettext) work for translating config file of plugin?
- how to add a comment button to be displayed only for the posts in the home page [closed]
- The “Child Pages Shortcode” plugin, block template
- using wp_footer hook in a plugin
- How to get a custom page through plugin?
- WooCommerce – I want to add functionality of one plugin to another plugin — best approach?
- Want to create custom design of progress indicator in wpforms
- Using Class loader in WordPress boilerplate
- How to prepare (compress/zip) a plugin to enable updating instead of adding new instance?
- WC Fix Attributes – ‘Add New’ Not Searchable/Delayed
- How to display the custom post related blog by category?
- WP Forms not displaying,becomming an fatal error
- $wpdb->insert not working inside save_post tag
- wp_mail function not working in WordPress Plugin Boilerplate
- When/where would want to attach other classes to the base class in a WordPress plugin?
- Using foreach loop for `$instance` of form and update array widget iteration
- How to call a function from inside class to outside class
- Custom plugin which downloads updates from custom endpoint, extracts new version zip into a new name
- wp meta_query meta_value compare =REGEXP delimited by space
- Create shared actions for admin and users with plugin bolierplate
- How to insert variable which contain array value in wp_options table?
- How to Insert images in WordPress using code
- Javascript in plugin not working
- Theme editor removes backslashes
- shortcode which is introduced into entry the blog, and appears in side bar
- Widget Script Loads at Bottom of Page
- Plugin Hook: Get posts
- Multiselect value in wp_query
- How to Overwrite validate_plugin function
- Is it possible to cancel a post status transition?
- get_option include in my adsense
- Form data to wordpress DB
- Register additional wp plugin directory
- How to display blog posts only authored by the administrator
- Send email notification when meet the condition
- redirect to custom php template in wordpress plugin directory
- How can I send api calls from my plugin?
- On the same site, how do I send data from a plugin file to a theme file?
- Custom wordpress plugin does not save select element
- How to set meta-data for my plugin
- Is it possible to create post in wordpress using postman?
- wp_enqueue_script doesn’t load JS in plugin
- AI Code For OpenAI