settings of PDF thumbnails
-
Hi, sorry for spaming, but I like plugin very much! π
in filter attachment_fields_to_edit you checking attachment, if is image. But we have also PDF thumbnails, which is not. I think, there it can be like below
1) wp_get_attachment_metadata
2) check if meta[sizes] is set
3) get relative path of full image
4) check extension over wp_check_filetype, if is jpg,png…Like this, it would be bulletproof. I have thumbnails of PDF, MP4 videos…
Thank you
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘settings of PDF thumbnails’ is closed to new replies.