|
|
@ -95,6 +95,13 @@ function setup() { |
|
|
|
|
|
|
|
|
|
|
|
// Add shortcode buttons. |
|
|
|
// Add shortcode buttons. |
|
|
|
add_action( 'init', __NAMESPACE__ . '\register_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' ); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|