PDF viewing


#1

Is there a way to add or change the photos to be able to view .pdf files?


#2

You could add another type of media say “docs” or “documents”. You should be looking for the rtmedia_allowed_types filter. But then again this feature has not yet been tested thoroughly and is in its starting stages. This could take a little time to get robust and up to its fully functional level.


#3

Where would that be located?


#4

Hi,
You could find the filter declaration of the filter here. That being said you shouldn’t be making changes to the core rtMedia files but use the filter instead ( probably in your theme’s “functions.php” ). You can check this page to get to know more on how to use hooks.


#5

Sorry- So which folder would this be under? I’m having trouble finding the the file to edit.


#6

It is not advisable to change the rtMedia core files as your changes would be removed on updation of rtMedia. The best way to go about this is using hooks. The rtmedia_allowed_types hook should do the job.


#7

Thanks for your help. I’m just not sure where to find “rtmedia_allowed_types”. Is it available from my dashboard and editing plugins? I’m not finding the folder that it is located in. I looked through my theme’s function.php and didn’t see anything related to rtmedia. I have it active on my site now, though.


#8

You would need to use hooks to achieve it -> http://codex.wordpress.org/Plugin_API/Hooks

You could put the code in your theme’s functions.php file.


#9

#10

#11