Created
August 2, 2020 12:04
-
-
Save thegulshankumar/041833d5dd8068c1748b729c8d79ef45 to your computer and use it in GitHub Desktop.
Remove Block Editor in WordPress
This file contains hidden or 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
function remove_block_css() { | |
wp_dequeue_style( 'wp-block-library' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'remove_block_css', 20 ); | |
// disable for posts | |
add_filter('use_block_editor_for_post', '__return_false', 10); | |
// disable for post types | |
add_filter('use_block_editor_for_post_type', '__return_false', 10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment