As far as I know the only way to get your block’s settings to show up in the Global Styles (so their defaults can be set) is by using the Supports API. It’s automatic if your block’s settings are implemented via Supports.
Here it is from the docs:
The global styles UI in the site editor has a screen for per-block styles. The list of blocks is generated dynamically using the block supports from the block.json of blocks. If a block wants to be listed there, it needs to use the block supports mechanism.
Related Posts:
- Error : “Updating failed: The response is not a valid JSON response” with custom shortcode
- Are block templates incompatible with serialize_blocks?
- How to access noticeOperations from withNotices
- WP Gutenberg Blocks – How to limit first/root blocks
- How to get boolean value from register_meta properly?
- How to only load css for used blocks on frontend
- Invalid hook call on save, not edit when using swiper slider
- Proper way to use useSelect
- Gutenberg blocks error: Each child in a list should have a unique “key” prop
- Pass custom props to
- Gutenberg text field validation
- Why isn’t custom sidebar panel not showing up in the Gutenberg Editor?
- Remove Gutenberg Buttons Block
- useBlockProps() nests wrapper with class name inside block wrapper in the editor
- WordPress Block with Interactivity API e Preact Component
- Plugin is not generating title tags on any pages or posts
- How to add a gradient component to a custom block
- Is it necessary to do validation again when retrieving data from database?
- How to Control CSS of Admin On Creating only a Specific Custom Post Type
- Can’t change the style of a submit input type? [closed]
- Make a plugin page out of influence of the theme’s style
- Update Data parameter of a wp_localize_script() call
- Custom entity search and display
- WP Plugin Running before jQuery
- Template directory in plugin
- get_the_tags with separator control?
- Additional classes `undefined` after saving post in Gutenberg
- How do you submit a Gutenberg plugin?
- 400 Bad Request, in wordpress theme development, wp_ajax
- Add child pages to submenu automatically
- Why in this archive page that call query_posts() function show only the last 10 posts?
- my own SVN for a plugin/theme
- Issue on Setting $icon_url Parameter on WP add_menu_page()
- Why enqueue styles on hook?
- Getting a WordPress Debug Strategy
- unable to wp_enqueue_script(‘suggest’);
- Drawing the line between theme & plugin on large scale bespoke projects
- Apply styles to blockquote element with the WYSIWYG editor
- Catching Gutenberg sidebar switch event
- PHP File_exist() not working – Checking if File Exist in WordPress Theme Directory
- Why would you use esc_attr() on internal functions?
- Use npm and wp-env to make production bundle
- Conditional Generation of Image Sizes using add_image_size
- How to add template colors to custom block options in WordPress Gutenberg editor sidebar?
- How to add plugin options in wp editor page
- Ajax: Populate with content from a post’s ID not working – duplicating current page html instead
- How to save post meta as an array in Gutenberg?
- How to find where an object first instantiatiation
- How to use apiFetch to get author information in Gutenberg properly?
- How to properly package a block plugin
- Setting global block attribute value
- Developing the save function in Gutenberg blocks
- Full documentation about $args for register_rest_route?
- WordPress Gutenberg InnerBlocks renderAppender not showing with template
- WP Still Generating 150×150 Thumbnail Size Even After Un-Setting Small Size in Functions.php
- Gutenberg – is it ok to load dependencies multiple times?
- Preventing double loading JS scripts (like React) when developing for Gutenberg
- modify show UI of a registered taxonomy
- Using function from enqueued .js file in theme in plugin?
- Does WordPress default CSS have Grids?
- Using HTML links within translatable string
- How to resize WordPress images on upload to specific height and width without cropping it
- Create fixed static pages
- How to get terms for taxonomy
- How to replace settings in WordPress plugin from a theme
- Save temporary registration data
- How to remove/replace current page template?
- WordPress dynamic widget by location?
- WordPress Page Reload Takes forever during theme development
- Adjust query on single
- Setting a post’s category
- rewrite_rules problem
- Using password protection to load different page elements?
- Anyone using unzip_file successfully? It uploads the zip but doesn’t extract it!
- How can the_excerpt (or equivalent) be called on a category description?
- Why does website stretch and white space on load? [duplicate]
- Modify custom block plugin without losing content
- Console errors in 6.0-RC1 Widget screen
- Change the behaviour of a button
- WP_Query order posts by category
- Custom Block Not Shown in Block Inserter
- How to override supports of innerBlocks?
- Configuring Xdebug with docker compose
- How to use attributes in competent of Gutenberg
- Why my theme’s css not working on another site
- var(–text-color) in style.scss works once but not twitch
- How to access index file in Block Themes?
- When setting styles to an extended block that was saved as a pattern, it doesn’t remove the style that was there
- How to show comments from different Plugins to same post type?
- wordpress full site editing problem when extending core blocks
- Getting incorrect filepath inside custom block front-end output using @wordpress/create-block tutorial
- How to extend SelectControl with data from my theme
- extraprops override existing props
- Include external po file for 3th party plugin to theme
- Trigger function on Remove block or add new block in Gutenberg JavaScript
- WordPress Favicon not Working For Images/Videos/PDFs
- WPGut – Updating failed and shortcode?
- How to make premium plugin? I want to limit it until verification
- Rerender core Templates with with ToggleControl but it doesnt recognize block type
- Gutenberg – Call google map render function in save after DOM has been rendered