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 badges1 Answer
Reset to default 0A 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
版权声明:本文标题:Use wp.media templates to create totally custom modal 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736280854a1926134.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论