Stop WordPress turning the first page of every uploaded PDF into a set of preview images, which saves upload time and disk space.
add_filter( 'fallback_intermediate_image_sizes', '__return_empty_array' );
Always add PHP to a staging site first, or have FTP or file manager access ready, so you can undo it if something goes wrong.
When you upload a PDF, WordPress renders its first page into several image sizes so the Media Library can show a thumbnail. On sites that upload many PDFs, that’s slow uploads and hundreds of extra files nobody looks at.
For non-image uploads like PDFs, WordPress uses the fallback_intermediate_image_sizes filter to decide which preview sizes to create. Returning an empty list skips the previews entirely. The PDF itself uploads normally.
Upload a PDF, then check the uploads folder for the month: you should see only the PDF, with no -pdf.jpg files.