Removing advanced section from brand new gutenberg block
Removing advanced section from brand new gutenberg block
Removing advanced section from brand new gutenberg block
do_blocks does not include its CSS
Restrict heading level in Gutenberg block `core/heading`
Is there any way to render the WordPress Gutenberg core/embed block in PHP by passing in the URL?
Run the edit function of parent block when something changes in InnerBlocks
It seems I’ll have to answer my question myself 🙂 The solution that I found is using uncontrolled form input component (substituting <TextControl>, or more precisely, I opted to use __experimentalInputControl, with prop isPressEnterToChange={ true }, which only updates control on pressing Enter. I did not inspect the code, but I believe firmly that it … Read more
Is there a better way to to make async API calls using the @wordpress/data module?
It’s possible to use the language_attributes filter as before since the template canvas in FSE contains: <html <?php language_attributes(); ?>> Add this code to the appropriate place in your theme or plugin: <?php add_filter( ‘language_attributes’, function($lang_attributes) { return “$lang_attributes foo=\”bar\””; });
From the docs: While it is possible to return a string value from save, it will be escaped. If the string includes HTML markup, the markup will be shown on the front of the site verbatim, not as the equivalent HTML node content. If you must return raw HTML from save, use wp.element.RawHTML. As the … Read more
I’m wondering if I can use any of the functions listed in the @wordpress/date package to convert a GMT date to a date in the user’s locale. Yes, you can use the dateI18n() function. However, the source date (i.e. the 2nd parameter for the above function) by default uses the time zone of the user’s … Read more