Following up on this answer I'm trying to determine how to create a modal with completely unique menu items/content than the media modal.

If you add a new state you can add a new menu tab and have it render the appropriate content when clicked. However, what I've found so far is that if you don't include the traditonal wp.media.controller.Library() states (for gallery, insert, etc) then the menu does not render at all and you are left with an empty media frame.

I've started a gist for a plugin, and the modal opens, but so far there's nothing in it.

Does anyone know how to create custom frames with custom states?

1 Answer 1


A little late but I think Extending the WordPress Media Uploader: Embed Options should work. I'm trying to do the same.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.