WordPress media manager, by default, allows you to filter media with the three types, say, images, audio and video. But, if in case, you required more and want to add PDF support to it, then here is a simple code snippet for you to do the task. Copy and paste the following snippet into your theme’s functions.php file and you are done.

Snippet Source/Credit: WP Tuts