Ok, I mean using hooks / filters.
Basically, the default is two options: Images and Uploaded to this page . I would like to add an additional option there. I know how to add a new tab to the media manager ( see here ), but this does not achieve what I need.
I looked through the limited documentation for 3.5 and found the filters media_view_strings/settings , but, based on what I can say, in this case they cannot be used. I also rummaged quite a bit in the main source, but the number of files related to the media loader is at least the most complex.
I thought about starting JS after loading the page to change the DOM and just add an extra selection option, but this seems very hacky, and I would like to avoid it if there is a better and more reliable solution.
Any thoughts on the best way to approach this will be greatly appreciated!
Note. I did not publish this on the WordPress SE website, as it receives much less traffic, and the issues are generally much less related to programming.
source share