close
Skip to content

Support hiding post status and publish date controls in the post status panel #75529

@costasovo

Description

@costasovo

What problem does this address?

Our team is using the block editor for editing email custom post types. Currently, we hide the post status panel in the sidebar (via removeEditorPanel( 'post-status' ); because it contains controls we don't want to present to the users.

The current state

Image

For our usecase we would like to hide:

  • status - we don't want to allow changing the status
  • publish date
  • word count, time read info - They don’t add much value in the email context

Desired state

Image

We do want to add a couple of custom controls, ideally above the template option. Currently, it is possible to add new items only below the existing ones.

What is your proposed solution?

I don't know what would be the best solution here. I think we could add new options to the register_custom_post_type function to configure the post type to have a hidden status and publish date.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions