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
- Autoloading & Namespaces in WordPress Plugins & Themes: Can it Work?
- What process do you use for WordPress development? [closed]
- What is the advantage of using wp_mail?
- Should Plugin Folders Include a Blank index.php File?
- Should I create a theme or a plugin?
- Where do I start from
- wp_remote_get doesn’t work with secure connections https?
- Authoritative answer on which boots first – Plugins or Themes?
- How to Add Font Awesome Icons to WordPress Menus?
- Custom theme sufficient or custom plugin neccessary for this feature set?
- Create Element From Dynamic HTML String [closed]
- How to create custom home page via plugin?
- Featured Image not showing in admin
- How to Parse an Array of Elements in Gutenberg Block
- Whats the difference between blog_info(‘stylesheet_url’) difference get_stylesheet_uri()
- Paging on a future post loop?
- Gutenberg – What is the best way to save/update post meta?
- How to check if a stylesheet is already loaded?
- Problem with is_active_sidebar?
- How to create multiple Gutenberg blocks in one plugin
- How to get color name in PanelColorSettings in custom Gutenberg block?
- Change template dynamically
- How to use get_theme_mod in gutenberg editor wordpress?
- Get Current Menu Location inside Nav_Walker
- Howto: Use Custom Post Types as Submenu Items in Admin
- Is there an additional block.json property to set to get an InnerBlocks child to respect the “supports” property?
- How to setAttributes in Gutenberg block?
- How to prevent UNDO on guternberg block editor
- How to override gutenberg paragraph block edit property
- What’s the right way to instantiate new blocks and/or the plugin itself in toto when using wppb architecture?
- Creating a custom Gutenberg block with columns
- How can I get the selected string when using a toolbar button in Gutenberg?
- How to limit number of number of categories displayed by categories widget
- How to hide or rename “X” and “x-child” references in website source?
- How to control an elements classes from multiple Gutenberg sidebar controls?
- Plugin is not generating title tags on any pages or posts
- Is it necessary to do validation again when retrieving data from database?
- Update Data parameter of a wp_localize_script() call
- get_the_tags with separator control?
- Add child pages to submenu automatically
- Why in this archive page that call query_posts() function show only the last 10 posts?
- PHP File_exist() not working – Checking if File Exist in WordPress Theme Directory
- Why would you use esc_attr() on internal functions?
- How to find where an object first instantiatiation
- Full documentation about $args for register_rest_route?
- How to get terms for taxonomy
- WordPress dynamic widget by location?
- Adjust query on single
- WP_Query order posts by category
- How to override supports of innerBlocks?
- Getting incorrect filepath inside custom block front-end output using @wordpress/create-block tutorial
- extraprops override existing props
- 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?
- HTMLCollection not counting right in editor? / for loop not working on elements in DOM
- Is “document loaded” different on admin side than public side?
- why is apiFetch throwing Unhandled Promise Rejection: TypeError: Object is not a function
- Is it possible to develop themes and plugins locally while still allowing content to be updated directly in the admin dashboard?
- Error Connecting to Database WHEN Installing WordPress on XAMPP [Tried All the Usual Stuff] (Pics Included)
- How to integrate plugins into block editor
- How can I measure CPU and RAM used by my theme or plugin
- How to create save function for custom Gutenberg style block?
- set a custom post type to a taxonomy term programmatically in metabox
- Custom premium registration form and profile page for a WordPress Web Application
- My enqueue admin style function doesn’t work because of ?=ver
- How to destroy or dispose wordpress uploder/manager?
- To remove rendering of menus and header, plugin or theme?
- To remove rendering of menus and header, plugin or theme?
- How can I add recent posts to menu like mashable
- Display Data’s metabox in page
- Ajax functions – no access to wp-admin.php only online
- How can I make my website with wordpress having on-spot editing feature as compared to concrete5 CMS?
- Loading jQuery library from WordPress admin
- how to catch a data from a array in WordPress
- How react js and other Javascript Technologies works on WordPress plugin?
- get the queried_object of an url
- Add custom data-attribute to core Gutenberg block within an template
- Call API on post save/update and show the result in admin area
- How to use useSelect to retrieve the currently default fontFamily?
- Event when Modal is opened/visible
- Multiple php files in dynamic gutenberg block
- Custom Gutenberg Block ‘Stylized List’ – Incorrect Rendering and Looping of List Items
- Gutenberg move post/page title to Editor sidebar document panel
- configure additonal build files in the @wordpress/create-block
- Is It Possible to Use the Block Editor’s Notification Feature to Send Another Notification After the Post Is Saved?