285

How to Disable the Block Editor for Managing Widgets

Powered by WPCodeBox

Learn how to disable the block editor for managing widgets in WordPress. This snippet provides the code and instructions to effectively disable the block editor, ensuring seamless widget management.


<?php

// Disables the block editor from managing widgets.
add_filter( '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.