20

How to Disable the Block Editor for Widgets in Gutenberg

Powered by WPCodeBox

This snippet disables the block editor for managing widgets in the Gutenberg plugin, offering a streamlined experience for users who prefer an alternative method for widget management.


<?php

// Disables the block editor from managing widgets in the Gutenberg plugin.
add_filter( 'gutenberg_use_widgets_block_editor', '__return_false' );

Other Snippets

WPCodeBox is a WordPress Code Snippets Manager that allows you to share your WordPress Code Snippets across your sites.