Hi, I also want the file previews to show in the media library (both views) rather than the stock image saying “Download Monitor Protected File”.
Is there something I can do with dlm_filter_thumbnails_protected_files to achieve this?
EDIT:
I have commented out the lines in download monitors admin.php
// add_filter( ‘wp_prepare_attachment_for_js’, array( $this, ‘filter_thumbnails_protected_files_grid’ ), 10, 1 );
// add_filter( ‘wp_get_attachment_image_src’, array( $this, ‘filter_thumbnails_protected_files_list’ ), 10, 1 );
and that seems to do the trick though I’m unsure if I could cause any issues with this and would like a solution that would allow continuing to get the updates to the plugin without remembering to manually edit, cheers.
-
This reply was modified 6 years, 7 months ago by fitzciaran.