WordPress Block Editor (Gutenberg) Issues: Custom Code Not Displaying Correctly

I'm having trouble with some custom code in WordPress after the recent updates. The code used to work perfectly, but now, when the Gutenberg block editor is active, it no longer displays correctly. I found a workaround by disabling the block editor for widgets with the following code: add_filter('use_widgets_block_editor', '__return_false'); When I disable the block editor, everything works fine. However, my question is: How can I make my custom code work without disabling the block editor, so it functions properly in the default state with Gutenberg active? I would appreciate any advice or guidance on how to resolve this issue in a way that maintains compatibility with the latest WordPress version. Thanks!

Comment (0)

You’ll be in good company