Created
March 26, 2022 13:32
-
-
Save guytzhak/36f941aa3c8a96ce93c9ae5be32101ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'block_editor_settings' , [$this, 'remove_guten_wrapper_styles'] ); | |
// disable Gutenberg for posts | |
add_filter('use_block_editor_for_post', '__return_false', 10); | |
// disable Gutenberg for post types | |
add_filter('use_block_editor_for_page', '__return_false', 10); | |
add_filter('should_load_block_editor_scripts_and_styles', '__return_false', 10); | |
remove_theme_support( 'editor-color-palette' ); | |
remove_theme_support( 'wp-block-styles' ); | |
remove_theme_support( 'core-block-patterns' ); | |
remove_theme_support( 'editor-gradient-presets' ); | |
remove_theme_support( 'editor-font-sizes' ); | |
remove_action( 'enqueue_block_assets', 'enqueue_block_styles_assets', 30 ); | |
remove_action( 'wp_body_open', 'wp_global_styles_render_svg_filters' ); | |
remove_action( 'in_admin_header', 'wp_global_styles_render_svg_filters' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment