Snippets Collections
/* DISABLE GUTENBERG EDITOR */
// disable for posts
add_filter('use_block_editor_for_post', '__return_false');

// disable for post types
add_filter('use_block_editor_for_post_type', '__return_false');

/* END DISABLE GUTENBERG EDITOR */ 
star

Thu Jun 24 2021 12:26:19 GMT+0000 (Coordinated Universal Time)

#wordpress #functions.php #blockeditor

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension