Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i think that add a hook to add custom tab in media library. #15729

Closed
hiepcua opened this issue May 20, 2019 · 1 comment
Closed

i think that add a hook to add custom tab in media library. #15729

hiepcua opened this issue May 20, 2019 · 1 comment

Comments

@hiepcua
Copy link

hiepcua commented May 20, 2019

Is your feature request related to a problem? Please describe.
I am build a plugin about media library that meet a problem when add custom tab to media library.

Describe the solution you'd like
I need a hook to create custom tab and document release to modify basic feature.

Describe alternatives you've considered
My research found a way that use Backbone.js. But i still have many difficulties in interaction.
var l10n = wp.media.view.l10n; wp.media.view.MediaFrame.Select.prototype.browseRouter = function( routerView ) { routerView.add({ upload: { text: l10n.uploadFilesTitle, priority: 20 }, browse: { text: l10n.mediaLibraryTitle, priority: 40 }, designbold_tab: { text: "my tab name", priority: 60 } }); };

@youknowriad
Copy link
Contributor

This seems like a duplicate of #6523

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants