• Resolved irishetcher

    (@irishetcher)


    Hi Jeff,

    I see that the latest update to Disable Gutenberg now works on WP 5 Beta. The only option was the Classic Editor plugin and the add_filter(‘gutenberg_can_edit_post_type’, ‘__return_false’); option didn’t work at all as the nemae of this is to change.

    By any chance do you know what that new filter name is? Are you using it in Disable Gutenberg?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter irishetcher

    (@irishetcher)

    Digging around in Classic Editor plugin I found the following:

    add_filter( ‘use_block_editor_for_post_type’, ‘__return_false’, 100 );

    Adding this to the functions.php file ( preferably a child theme ) disables Gutenberg in WordPress 5, no need for a plugin.

    You can pre-populate this filter into current 4.9.8 versions so they are ready when WP is officially launched.

    Caveats: the above filter won’t disable the plugin version of Gutenberg and we could see another name change to the filter.

    Plugin Author Jeff Starr

    (@specialk)

    I explain how to disable Gutenberg (using latest WP 5.0 technique) in this post:

    https://digwp.com/2018/04/how-to-disable-gutenberg/

    Thread Starter irishetcher

    (@irishetcher)

    Thanks Jeff. Didn’t realise that you had updated that article.

    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Gutenberg filter’ is closed to new replies.