Skip to content
This repository was archived by the owner on Oct 21, 2019. It is now read-only.
This repository was archived by the owner on Oct 21, 2019. It is now read-only.

remove_meta_box #4

@braders

Description

@braders

In the current editor it is possible to suppress also every part of the interface through the use of remove_metabox(). In the new editor, metaboxes are a legacy concept, and document settings are implemented in alternative ways.

Specific examples

  1. Suppressing post-specific content from admin-only custom post types (e.g. a redirect CPT, which does not require an author, page attributes etc.)

  2. In the current editor, it is possible to remove a core metabox, and replace it with a custom implementation. For example, a common use-case it to remove taxonomy metaboxes in order to provide a new interface which uses radio buttons (instead of checkboxes). e.g. https://plugins.trac.wordpress.org/browser/radio-buttons-for-taxonomies

Gutenburg alternative

There appears to be no ideal alternative in Gutenburg. I have seen it suggested that non-content posts, (such as the redirect CPT example) should continue to use the old editor, but this does seem to be limiting the usefulness of the new editor.

It may be possible to hide Document sidebar sections with CSS, but this is going to be a brittle solution unsuited to most use-cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions