Not able to set the previous post ‘public’. Don’t know why.
Here it is:
Native WordPress hook:
add_filter( 'ajax_query_attachments_args', 'show_audio_attachments', 10, 1 );
Media Library Assistant hook:
add_filter( 'mla_media_modal_query_filtered_terms', 'show_audio_attachments', 10, 1 );
function show_audio_attachments( $query=array() ) {
if( $_POST['query']['_acfuploader'] && $_POST['query']['_acfuploader'] == 'field_589471f6b171a' ) {
$query['post_mime_type'] = 'audio';
}
return $query;
}