admin管理员组

文章数量:1122846

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?

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?

Share Improve this question edited Apr 13, 2017 at 12:37 CommunityBot 1 asked Aug 8, 2016 at 21:14 helgathevikinghelgatheviking 14.5k8 gold badges64 silver badges115 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

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

本文标签: Use wpmedia templates to create totally custom modal