Update meta-boxes.js
Add filter options to product gallery images selector to make visible filters of plugins such as the Enhanced Media Library
This commit is contained in:
parent
a1ea33b828
commit
17a02b71c0
|
@ -1508,7 +1508,13 @@ jQuery( function($){
|
|||
button: {
|
||||
text: $el.data('update'),
|
||||
},
|
||||
multiple: true
|
||||
multiple: true,
|
||||
states : [
|
||||
new wp.media.controller.Library({
|
||||
title: $el.data('choose'),
|
||||
filterable : 'all'
|
||||
})
|
||||
]
|
||||
});
|
||||
|
||||
// When an image is selected, run a callback.
|
||||
|
@ -1584,4 +1590,4 @@ jQuery( function($){
|
|||
|
||||
return false;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue