Add media attachment filter to custom wp.media frame
You need to make use of filterable property. To do that, you can extend the library and use that as a custom state. // Create state var myCustomState = wp.media.controller.Library.extend({ defaults : _.defaults({ id: ‘my-custom-state’, title: ‘Upload Image’, allowLocalEdits: true, displaySettings: true, filterable: ‘all’, // This is the property you need. Accepts ‘all’, ‘uploaded’, or … Read more