-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
REST API InteractionRelated to REST APIRelated to REST API[Block] NavigationAffects the Navigation BlockAffects the Navigation Block[Feature] ExtensibilityThe ability to extend blocks or the editing experienceThe ability to extend blocks or the editing experience[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Description
#24670 added a Post, Page, Tag and Category variation to the Link block. We should extend this so that there is a Link variation for all post types and taxonomies that are registered using register_post_type()
and register_taxonomy()
. This will allow users to insert links to their third party post types and taxonomies.
This can probably be done by having packages/block-library/src/navigation-link/index.js
fetch the post types and taxonomies from the REST API using @wordpress/core-data
. It would then dynamically call registerBlockVariation()
on core/navigation-link
.
See discussion at #24670 (comment).
Metadata
Metadata
Assignees
Labels
REST API InteractionRelated to REST APIRelated to REST API[Block] NavigationAffects the Navigation BlockAffects the Navigation Block[Feature] ExtensibilityThe ability to extend blocks or the editing experienceThe ability to extend blocks or the editing experience[Type] EnhancementA suggestion for improvement.A suggestion for improvement.