How to replace woocommerce editor by classic post editor? How to replace woocommerce editor by classic post editor? wordpress wordpress

How to replace woocommerce editor by classic post editor?


You can disable block editor for any post type with use_block_editor_for_post_type filter hook.

add_filter ('use_block_editor_for_post_type', 'so57234401_use_block_editor', 10, 2 );function so57234401_use_block_editor( $use_block_editor, $post_type ){    if ( 'product' != $post_type )        return $use_block_editor;    return false;}


I use Classic Editor for all my projects. It works for posts, pages, custom post types and products. Also works well with must plugins.

It's a pain to have to install it on every installation but it is the best solution I have found to overwriting Gutenberg.

answer is brilliant! In fact it is the most simplistic solution I have seen in a long time. I just tested it and it works like a charm.