Browse Source

Use classic widgets in WP 5.8 (#270)

pull/274/head
Oscar Arzola 3 years ago committed by GitHub
parent
commit
3f7cbb9ef1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      inc/actions/namespace.php

7
inc/actions/namespace.php

@ -95,6 +95,13 @@ function setup() {
// Add shortcode buttons.
add_action( 'init', __NAMESPACE__ . '\register_shortcode_buttons' );
remove_theme_support( 'widgets-block-editor' );
// Disables the block editor from managing widgets in the Gutenberg plugin.
add_filter( 'gutenberg_use_widgets_block_editor', '__return_false' );
// Disables the block editor from managing widgets.
add_filter( 'use_widgets_block_editor', '__return_false' );
}
/**

Loading…
Cancel
Save