Skip to content

Allow media workflow to be passed to MediaUploadButton #1979

@joemcgill

Description

@joemcgill

Issue Overview

In #1820, a gallery prop was added to the MediaUploadButton component, which is used to select a custom workflow for creating an image gallery. This works, but it seems like a better solution might be to let components using MediaUploadButton pass a custom workflow (e.g., wp.media.frame ) to the MediaUploadButton instead, since we're likely going to need custom workflows for many different kinds of media blocks that access the media modal.

Related Issues and/or PRs

  • 1820

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] MediaAnything that impacts the experience of managing media

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions