Skip to content

Document how to disable the block-editor specifically for the widgets #25123

Closed

Description

@skorasaurus

Describe the bug

The default interface for editing widgets is now the block-editor for Gutenberg plugin users; theme developer documentation should include how to disable this in a case a user wishes to use the classic interface.

"Themes and plugins are able to opt out of this screen by calling remove_theme_support( 'widgets-block-editor' ) or by using the gutenberg_use_widgets_block_editor hook" - Jorge Costa

It is also been mentioned at that this can be done through add_filter( 'gutenberg_use_widgets_block_editor', '__return_false', 100 ); (REF #25483)

Expected behavior

The theme support page has become a defacto place where all of the remove_theme_support and add_theme_support issues that have been implemented with gutenberg are listed.

Should/Could this be documented there or elsewhere?

Editor version (please complete the following information):

  • WordPress version: N/a
  • Does the website has Gutenberg plugin installed, or is it using the block editor that comes by default? [e.g: "gutenberg plugin"]
  • If the Gutenberg plugin is installed, which version is it? 8.9

Activity

  1. added
    [Feature] Widgets Screen
    [Type] Developer Documentation
    [Type] Enhancement
    on Sep 15, 2020
  2. draganescu commented on Oct 1, 2020

    @draganescu
    Contributor

    This PR aims to allow disabling via plugin. For other situations there is also a theme supports, that though seems to be limited when trying to disable things in the Customizer.

  3. noisysocks commented on Oct 2, 2020

    @noisysocks
    Member

    The theme support page has become a defacto place where all of the remove_theme_support and add_theme_support issues that have been implemented with gutenberg are listed.

    Sounds good. Let's add documentation for remove_theme_support( 'widgets-block-editor' ) to this page.

  4. removed
    [Type] Enhancement
    on Oct 2, 2020
  5. draganescu commented on Oct 8, 2020

    @draganescu
    Contributor

    I would to remove the theme supports. Having a filter is enough.

  6. adamziel commented on Oct 9, 2020

    @adamziel
    Contributor

    @draganescu what should happen to this issue if we do that?

  7. draganescu commented on Feb 18, 2021

    @draganescu
    Contributor

    It is still unclear how to best opt out.

  8. added
    Needs Decision
    on Apr 8, 2021
  9. noisysocks commented on Apr 8, 2021

    @noisysocks
    Member

    It is still unclear how to best opt out.

    See #26154 (comment).

  10. noisysocks commented on May 17, 2021

    @noisysocks
    Member

    Closing this as the docs added in #31577 contains a page with a few different ways to disable the new editor.

    We have not yet decided if the new editor will be opt in or opt out. That decision is tracked by #26154.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Decision[Feature] Widgets Screen[Type] Developer Documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions