Skip to content

Use labels in getVisualTypeName() #71492

@dannyreaktiv

Description

@dannyreaktiv

What problem does this address?

function getVisualTypeName( suggestion ) {

In the getVisualTypeName() function, the results are usually going to be the slugs for the post types, rather than all nice human readable labels from the Post Type Objects.

What is your proposed solution?

Is there a way for the getVisualTypeName() to extract and return the single label from the Post Type Object? Does it come along in the suggestion?

Metadata

Metadata

Assignees

Labels

[Feature] Link EditingLink components (LinkControl, URLInput) and integrations (RichText link formatting)[Package] Block editor/packages/block-editor[Status] In ProgressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.

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